You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any search that is longer than 1 or 2 characters will crash the search and return an error:
vue.min.js:6 TypeError: Cannot read property 'toLowerCase' of null
at Ot.searchResults (gui.js:119)
at Uo.get (vue.min.js:6)
at Uo.evaluate (vue.min.js:6)
at Ot.searchResults (vue.min.js:6)
at Ot.searchResultsOpen (gui.js:36)
at Uo.get (vue.min.js:6)
at Uo.evaluate (vue.min.js:6)
at Ot.searchResultsOpen (vue.min.js:6)
at Ot.eval (eval at wi (vue.min.js:1), :3:4292)
at Ot.e._render (vue.min.js:6)
The text was updated successfully, but these errors were encountered:
I see, it's because there are guard towers without a creator/owner name attached (probably spawned in somehow, or edited). The solution is relatively simple - add a check on creator names to make sure they contain a value before trying to parse them, and if not provide fallback values on lines 78, 110 and 160.
I'll try to fix this soon and release a new version. In the meantime, I don't know if it's possible to fix or re-build the offending towers and other structures so they do have an owner, but you can check which ones are causing problems in the JSON files in the generated data directory. Search the files for "creator":null.
Can confirm locating structures and assigning them owners or deleting them and then re-running the script solves the issue. Thanks for the explanation @woubuc
Any search that is longer than 1 or 2 characters will crash the search and return an error:
vue.min.js:6 TypeError: Cannot read property 'toLowerCase' of null
at Ot.searchResults (gui.js:119)
at Uo.get (vue.min.js:6)
at Uo.evaluate (vue.min.js:6)
at Ot.searchResults (vue.min.js:6)
at Ot.searchResultsOpen (gui.js:36)
at Uo.get (vue.min.js:6)
at Uo.evaluate (vue.min.js:6)
at Ot.searchResultsOpen (vue.min.js:6)
at Ot.eval (eval at wi (vue.min.js:1), :3:4292)
at Ot.e._render (vue.min.js:6)
The text was updated successfully, but these errors were encountered: