RavenDT / WoWAstralKeys

Export a table of your characters' Mythic Keystones from AstralKeys addon.
MIT License
0 stars 0 forks source link

No error checking for characters that haven't received keys #1

Open RavenDT opened 2 years ago

RavenDT commented 2 years ago
PS> .\WoWAstralKeys.ps1
InvalidOperation: C:\Users\raven\dev\WoWAstralKeys\WoWAstralKeys.ps1:248
Line |
 248 |              if (!$MyKeyData[$Item.unit]) { $MyKeyData[$Item.unit] = @ …
     |                  ~~~~~~~~~~~~~~~~~~~~~~~
     | Index operation failed; the array index evaluated to null.

InvalidOperation: C:\Users\raven\dev\WoWAstralKeys\WoWAstralKeys.ps1:249
Line |
 249 |              $MyKeyData[$Item.unit].Name = $Item.unit
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Index operation failed; the array index evaluated to null.

InvalidOperation: C:\Users\raven\dev\WoWAstralKeys\WoWAstralKeys.ps1:250
Line |
 250 |              $MyKeyData[$Item.unit].Class = $CLASS[$Item.class]
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Index operation failed; the array index evaluated to null.

InvalidOperation: C:\Users\raven\dev\WoWAstralKeys\WoWAstralKeys.ps1:251
Line |
 251 |              $MyKeyData[$Item.unit].Faction = $FACTION_."$($Item.facti …
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Index operation failed; the array index evaluated to null.

InvalidOperation: C:\Users\raven\dev\WoWAstralKeys\WoWAstralKeys.ps1:252
Line |
 252 |              $MyKeyData[$Item.unit].Dungeon = 'No key'
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Index operation failed; the array index evaluated to null.

InvalidOperation: C:\Users\raven\dev\WoWAstralKeys\WoWAstralKeys.ps1:253
Line |
 253 |              $MyKeyData[$Item.unit].Level = 0
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Index operation failed; the array index evaluated to null.

InvalidOperation: C:\Users\raven\dev\WoWAstralKeys\WoWAstralKeys.ps1:254
Line |
 254 |              $MyKeyData[$Item.unit].WeeklyBest = $Item.weekly_best
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Index operation failed; the array index evaluated to null.

Name                  Faction  Class  Dungeon            Level WeeklyBest
----                  -------  -----  -------            ----- ----------
Character-Server      Alliance Hunter Halls of Atonement    15          0
RavenDT commented 1 year ago

Haven't seen this bug in a while. Not sure if any future code developments may have solved the problem.