ReadySetDing

10 - RSD New Error

This error just happenned:

Date: 2011-02-20 22:31:15
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\ReadySetDing\ReadySetDing.lua line 1733:
   attempt to index field '?' (a number value)
Debug:
   (tail call): ?
   ReadySetDing\ReadySetDing.lua:1733 ?()
   ...Ons\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:147
      ...Ons\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:147
   [string "safecall Dispatcher[1]"]:4:
      [string "safecall Dispatcher[1]"]:4
   [C]: ?
   [string "safecall Dispatcher[1]"]:13: ?()
   ...Ons\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:92 Fire()
   Ace3\AceEvent-3.0\AceEvent-3.0.lua:120
      Ace3\AceEvent-3.0\AceEvent-3.0.lua:119

Name Size MD5
ReadySetDing.lua 55.5 KiB da49c30ecdc5...
_Swatter.lua 137.8 KiB 2e30512c29f4...
User When Change
Ketho Feb 22, 2011 at 01:44 UTC Changed status from Started to Fixed
Ketho Feb 21, 2011 at 11:07 UTC Changed status from New to Started
MarkParish Feb 21, 2011 at 03:39 UTC

Added attachment _Swatter.lua

MarkParish Feb 21, 2011 at 03:39 UTC

Added attachment ReadySetDing.lua

MarkParish Feb 21, 2011 at 03:36 UTC Create

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

  • 2 comments
  • Avatar of MarkParish MarkParish Feb 21, 2011 at 14:56 UTC - 0 likes

    You're welcome, if I find anything else I'll let you know at once

  • Avatar of Ketho Ketho Feb 21, 2011 at 11:07 UTC - 0 likes

    It seems I still don't completely understand, how I should check if something is a "table" or not. I should have gotten this error myself, earlier, but don't really got an idea why I never got it.

    I've played around in the Lua Live Demo with it, and I will try to use API type instead, in the upcoming v0.81

    before: (won't print anything, and gives that error)

    local t = {5}
    if t[1] and t[1][1] then
       print("there is a deeper table!")
    else
       print("there is not a deeper table!")
    end
    

    after: (should work, prints "there is a not a deeper table!)

    local t = {5}
    if t[1] and type(t[1]) == "table" then
       print("there is a deeper table!")
    else
       print("there is not a deeper table!")
    end
    

    thanks, Mark

    Last edited Feb 21, 2011 by Ketho
  • 2 comments

Facts

Last updated
Feb 22, 2011
Reported
Feb 21, 2011
Status
Fixed - Developer made requested changes. QA should verify.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees