I setup a Global Variable, type Number, and then clicked to create a Connector, and it gave me a
Unexpected Error
An unexpected error has occurred trying to load the app. Check Logs for more information.
Error: Cannot invoke method sort() on null object
The log shows:
[app:35](http://10.0.0.30/logs/past#app35)2019-10-22 10:17:55.293 pm [error](http://10.0.0.30/installedapp/configure/35)java.lang.NullPointerException: Cannot invoke method sort() on null object on line 148 (globalVar)
I'm now unable to access the Global Variables to delete it, as this error occurs everytime I try and access the "Create, Set or Delete Global Variables" section.
I dont even know what a connector is, but I clicked on it to try and find out. As I was trying to work out how I could use my global variable in a delay action.
Any ideas how to resolve this error, and why it occurred in the first place?
I'm on the latest version.
@bravenel
Strange this just happened to The poster above. It just happened to me too. Same exact scenario except mine was a Boolean. Any help would be welcome.
LJ
You'll need to either get bravenel to fix your database for you, or restore from a previous backup.
did he explain how to avoid this in the future? Did We do something wrong?
LJ
What steps did you do that caused the problem?
Same as described above. I created my first Global variable. Named it, and set it to boolean. Then I clicked on connector to figure out what that was. I got an Sort() error. It then took me back out to the main Apps screen. When i went back in to Rule Machine and clicked on the global variable i created I get the same sort() null error. The global variable was created in the listing, but the connector field is blank. Don't know what the connector is or does.
So I can't get into the global variable screen at this point to edit or delete. I am going to try rebooting the hub to see if that clears it.
LJ
EDIT: the error is:
2019-10-23 11:53:34.571 am errorjava.lang.NullPointerException: Cannot invoke method sort() on null object on line 148 (globalVar)