RaiderIO / raiderio-addon

RaiderIO AddOn
https://raider.io/addon
Other
40 stars 21 forks source link

RaiderIO\core.lua:1229: attempt to compare nil with number #150

Closed zmoose closed 3 years ago

zmoose commented 3 years ago

14x RaiderIO\core.lua:1229: attempt to compare nil with number [string "@RaiderIO\core.lua"]:1229: in function GetScoreColor' [string "@RaiderIO\core.lua"]:3444: in functionUpdateTooltip' [string "@RaiderIO\core.lua"]:3032: in function `ShowKeystone' [string "@RaiderIO\core.lua"]:4882: in function <RaiderIO\core.lua:4866>

[string "@TheUndermineJournal\libs\LibExtraTip\LibExtraTip.lua"]:499: in function <...TheUndermineJournal\libs\LibExtraTip\LibExtraTip.lua:493>

[string "@TradeSkillMaster\LibTSM\Service\ItemTooltipClasses\Wrapper.lua"]:98: in function <...Master\LibTSM\Service\ItemTooltipClasses\Wrapper.lua:96> [string "@TheUndermineJournal\libs\LibExtraTip\LibExtraTip.lua"]:425: in function SetBagItem' [string "@FrameXML\ContainerFrame.lua"]:1324: in functionContainerFrameItemButton_OnUpdate' [string "@FrameXML\ContainerFrame.lua"]:1371: in function ContainerFrameItemButton_OnEnter' [string "@Bagnon\common\Wildpants\classes\item.lua"]:369: in functionShowTooltip' [string "@Bagnon\common\Wildpants\classes\item.lua"]:340: in function `UpdateTooltip' [string "@Bagnon\common\Wildpants\classes\item.lua"]:180: in function <...faceBagnon\common\Wildpants\classes\item.lua:179>

Locals: self =

{ IsUnitMaxLevel = defined @RaiderIO\core.lua:1033 GetLFDStatusForCurrentActivity = defined @RaiderIO\core.lua:1174 index = 3 Enable = defined @RaiderIO\core.lua:368 GetTimeZoneOffset = defined @RaiderIO\core.lua:859 GetDungeonByLFDActivityID = defined @RaiderIO\core.lua:747 GetFaction = defined @RaiderIO\core.lua:898 GetTimeFromDateString = defined @RaiderIO\core.lua:868 enabled = true HasDependencies = defined @RaiderIO\core.lua:393 GetSortedDungeons = defined @RaiderIO\core.lua:737 GetRegion = defined @RaiderIO\core.lua:876 IsLoaded = defined @RaiderIO\core.lua:358 GetKeystoneChestColor = defined @RaiderIO\core.lua:1250 SetOwnerSafely = defined @RaiderIO\core.lua:817 GetKeystoneAverageScoreForLevel = defined @RaiderIO\core.lua:1258 IsEnabled = defined @RaiderIO\core.lua:363 GetNameRealm = defined @RaiderIO\core.lua:994 SetEnabled = defined @RaiderIO\core.lua:353 Disable = defined @RaiderIO\core.lua:378 GetScoreColor = defined @RaiderIO\core.lua:1205 GetFactionFromRace = defined @RaiderIO\core.lua:924 GetNameRealmFromPlayerLink = defined @RaiderIO\core.lua:1084 FormatToPattern = defined @RaiderIO\core.lua:838 loaded = true GetInstanceStatus = defined @RaiderIO\core.lua:1166 GetLFDStatus = defined @RaiderIO\core.lua:1132 GetDependencies = defined @RaiderIO\core.lua:410 GetKeystoneLevelFromText = defined @RaiderIO\core.lua:1105 GetNumChests = defined @RaiderIO\core.lua:1238 GetDungeonByName = defined @RaiderIO\core.lua:785 GetDungeonByID = defined @RaiderIO\core.lua:770 IsUnitPlayer = defined @RaiderIO\core.lua:1044 GetDungeonByInstanceMapID = defined @RaiderIO\core.lua:775 IsMaxLevel = defined @RaiderIO\core.lua:1024 GetDungeonByKeyValue = defined @RaiderIO\core.lua:760 OnDisable = defined @RaiderIO\core.lua:442 IsUnitToken = defined @RaiderIO\core.lua:976 GetRealmSlug = defined @RaiderIO\core.lua:930 OnLoad = defined @RaiderIO\core.lua:433 SetLoaded = defined @RaiderIO\core.lua:338 IsUnit = defined @RaiderIO\core.lua:983 ExecuteWidgetHandler = defined @RaiderIO\core.lua:797 GetDungeonByIndex = defined @RaiderIO\core.lua:742 id = "Util" OnEnable = defined @RaiderIO\core.lua:438 GetDungeonByKeystoneID = defined @RaiderIO\core.lua:780 SetDependencies = defined @RaiderIO\core.lua:388 GetNameRealmForBNetFriend = defined @RaiderIO\core.lua:1052 GetDungeonByShortName = defined @RaiderIO\core.lua:790 Load = defined @RaiderIO\core.lua:343 CanLoad = defined @RaiderIO\core.lua:427 } score = 175 isPreviousSeason = nil colors =
{ 2 =
{ } 3 =
{ } 1 =
{ } 4 =
{ } 5 =
{ } } colorsSimple =
{ 2 =
{ } 3 =
{ } 1 =
{ } 4 =
{ } 5 =
{ } } (for

Vladinator commented 3 years ago

Thanks for the report. This bug was tied in with the new season score tiers, some missing data made this error occur, but it was since adjusted and resolved once people got some keystones that made this error occur when hovering the keystone item.