smaitch / Grail

World of Warcraft addon to provide a database of quest information.
31 stars 19 forks source link

\Grail\Grail.lua line 6956: attempt to index field '?' (a nil value) #250

Closed yoshimo closed 3 years ago

yoshimo commented 3 years ago

Got this with a freshly created paladin on the boat with the training targets on my way to exiles reach


   [string "@PersoLootRoll\Core\Addon.lua"]:590:
      PersoLootRoll\Core\Addon.lua:589
   [string "=[C]"]: ?
   [string "@Grail\Grail.lua"]:6956: GetPlayerMapPosition()
   [string "@Grail\Grail.lua"]:11055: Coordinates()
   [string "@Grail\Grail.lua"]:1890: ?()
   [string "@Grail\Grail.lua"]:11098: _Tooltip_OnEvent()
   [string "@Grail\Grail.lua"]:11646:
smaitch commented 3 years ago

It turns out C_Map.GetWorldPosFromMapPos does not return values from the boat. I have updated the code to work around this issue so we do not get a crash any more.