AFK Warning

4 - strlen(nil) in AFKWarning.lua:8590 when LDB plugin disabled

What steps will reproduce the problem?
1. Install AFKWarning
2. Remove the LDB Plugin from the Bazooka bar, disabling it
3. Restart the game

I then got a constant stream of errors because AFKWarning.LDBObjText is nil, and strlen blows up. I was able to work around it by making sure that AFKWarning.Settings.profile.BrokerIcon.ShowIdleTime was off, but I am not sure that the code above reading AFKWarning.LDBObj.text doesn't indicate the real bug -- a missing . to refer to the LDB text itself...

It would also be ideal if the LDB code disabled itself to do no work when the LDB plugin was disabled, which also would likely have avoided this problem.

User When Change
slippycheeze Dec 27, 2013 at 00:33 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Reported
Dec 27, 2013
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees