Scrap (Junk Seller)

Scrap (Junk Seller)

21M Downloads

v13.14 LUA error

R-Adrian opened this issue ยท 2 comments

commented

just upgraded to Scrap v13.14 via Twitch and i'm getting this error when i open the bags:

Date: 2019-02-15 18:18:28
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\Scrap\Scrap.lua line 163:
   Usage: GetDetailedItemLevelInfo(itemID|"name"|"itemlink")
Debug:
   [C]: ?
   [C]: GetDetailedItemLevelInfo()
   Scrap\Scrap.lua:163: CheckFilters()
   Scrap\Scrap.lua:113: IsJunk()
   Scrap_Spotlight\Scrap_Spotlight.lua:63:
      Scrap_Spotlight\Scrap_Spotlight.lua:53
   [C]: ContainerFrame_Update()
   ..\FrameXML\ContainerFrame.lua:282: ContainerFrame_OnShow()
   [string "*:OnShow"]:1:
      [string "*:OnShow"]:1
   [C]: Show()
   ..\FrameXML\ContainerFrame.lua:1023: ContainerFrame_GenerateFrame()
   ..\FrameXML\ContainerFrame.lua:118:
      ..\FrameXML\ContainerFrame.lua:102
   [C]: ToggleBag()
   ..\FrameXML\ContainerFrame.lua:140: ToggleBackpack()
   ..\FrameXML\ContainerFrame.lua:364: OpenBackpack()
   ..\FrameXML\ContainerFrame.lua:1500:
      ..\FrameXML\ContainerFrame.lua:1477
   [C]: ToggleAllBags()
   [string "OPENALLBAGS"]:1:
      [string "OPENALLBAGS"]:1
Locals:
commented

Gotta love those nil values xD

commented

note: this is yet another case of Blizzard's GetItemInfo(...) returning nil values and your code assumes it never does: at .\AddOns\Scrap\Scrap.lua line 163 the "link" variable obtained from GetItemInfo is nil in this case.