GCD

50 - LUA error (number compare to Nil) - and a fix

What steps will reproduce the problem?

In recent days I've been getting hundreds of LUA errors in ACTIONBAR_UPDATE_COOLDOWN()  in release 11.0.1.  I don't know what changed, but all of a sudden GetSpellCooldown() seems to be returning some Nil values, so in line 253 the numeric comparisons of 'dur' fail.

I changed 253 to say

        if dur and dur > 0 and dur <= 1.5 then

and the problem went away.

What is the expected output? What do you see instead?

What version of the product are you using?

Do you have an error log of what happened?

Please provide any additional information below.

        if dur and dur > 0 and dur <= 1.5 then

User When Change
Clattuc May 14, 2013 at 22:48 UTC Create

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

  • 2 comments
  • 2 comments

Facts

Reported
May 14, 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