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


  • New
  • Defect
Open
Assigned to _ForgeUser8662660
  • clattuc created this issue May 14, 2013

    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

  • clattuc added the tags New Defect May 14, 2013
  • clattuc posted a comment May 14, 2013

    Sorry that's line 253 of Modules/GCD.lua

  • tacotarget posted a comment Feb 20, 2014

    @Clattuc: Go

    FWIW, I've fixed this in the 'ticket-50' branch of my fork of the repo (http://www.wowace.com/addons/gcd/repositories/encoded/)


To post a comment, please login or register a new account.