Error: Attempt to compare nil values (only in some places)
Charrette opened this issue · 5 comments
I'm getting this error in some places (for instance in Deeprun Tram):
The popup won't close, which is a bit annoying. I fixed it with a naive check in the sort
method (QuestieTracker.lua):
sort(distanceNotes, function (a, b)
if not a["dist"] or not b["dist"] then return false; end
return a["dist"] < b["dist"]
end)
I don't know if this solution deserves to be merged but it's working 🌷
@Charrette From what I could see in a quick look, this would be a valid fix, but I'll wait if @ZoeyZolotova or @Dyaxler have an opinion on this, as they know the code much better.
@mrlouisianarub You are actually having a different issue, and the code that errors out is not in our current build anymore. This might indicate you are using a very old version of Questie. You can download the current dev build from here (only copy the !Questie
folder from inside the zip archive) or the current stable release from here. Please open a new issue if you keep having the same problem with one of our current builds.
@birimbirim As I said in #432 I need more information, like what the error message says if you get one. Updating to a newer version might help if you do not have v3.69 yet.