filterData (913): compare nil with number #8


  • New
  • Defect
Open
Assigned to _ForgeUser394447
  • _ForgeUser1324347 created this issue Mar 9, 2009

    What steps will reproduce the problem?
    1. An entry is saved with an empty name (""). Actually, I don't know, how this happened, but the fact, that it might happen is reason enough to catch it.

    What is the expected output? What do you see instead?
    When trying to open the Data View, an error occurs (see log)

    What version of the product are you using?
    Happened in 1.02d and later in 1.05d

    Do you have an error log of what happened?
    Date: 2009-03-09 18:38:30 ID: -1 Error occured in: Global Count: 1 Message: ..\AddOns\DoIKnowYou\DoIKnowYou.lua line 919: attempt to compare nil with number Debug: [C]: ? DoIKnowYou\DoIKnowYou.lua:919: DoIKnowYou\DoIKnowYou.lua:913 [C]: sort() DoIKnowYou\DoIKnowYou.lua:913: filterData() [string "*:OnShow"]:1: [string "*:OnShow"]:1 [C]: Show() [string "*:OnClick"]:5: [string "*:OnClick"]:1

    Additional inforamtion
    I can't reproduce, how it came to save an entry with an empty name. When I opened the DoIKnowYou.lua in WTF I found it and could verify that it was the reason for the error.

    I looked up the code at Line 913/919 and I suggest to add a test for 'nil' before comparing the values OR find the reason, how it was possible, that an entry without a name was saved.

  • _ForgeUser1324347 added the tags New Defect Mar 9, 2009

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