DennisRas / AlterEgo

AlterEgo is a World of Warcraft addon to track the Mythic+ progress of all your characters
11 stars 7 forks source link

Nil Ref in UpdateKeystoneItem #118

Closed zmj closed 6 months ago

zmj commented 6 months ago

One of my characters this week had a bit of latency looting the Great Vault, and since then (edit: not related) I've been getting errors with this stack trace:

Message: Interface/AddOns/AlterEgo/Database.lua:756: attempt to index a nil value Time: Tue Apr 2 18:31:34 2024 Count: 1 Stack: Interface/AddOns/AlterEgo/Database.lua:756: attempt to index a nil value [string "@Interface/AddOns/AlterEgo/Database.lua"]:756: in function UpdateKeystoneItem' [string "@Interface/AddOns/AlterEgo/Database.lua"]:477: in functionUpdateDB'

I tried resetting the addon data (deleting AlterEgo.lua in SavedVariables), but that didn't fix it. Any suggestions? Should I just remove or hard-code this color?

color = C_ChallengeMode.GetKeystoneLevelRarityColor(level):GenerateHexColor(),

zmj commented 6 months ago

Had this on another character as well. I updated the color assignment to:

color = C_ChallengeMode.GetKeystoneLevelRarityColor(level) and C_ChallengeMode.GetKeystoneLevelRarityColor(level):GenerateHexColor() or nil,

DennisRas commented 6 months ago

Hi there @zmj

That is indeed odd.
I'll look into it as soon as I get home from the office.

I can't tell from the error message itself which part is returning nil, but most likely the function itself from the ChallengeMode namespace.

I'll check if something has changed on Blizzard's side as well.

DennisRas commented 6 months ago

Also, do you have a keystone in your inventory? If so, what level is it?

DennisRas commented 6 months ago

Looks like a Blizzard issue. That's just fantastic :facepalm:

https://github.com/Stanzilla/WoWUIBugs/issues/544