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
java.lang.NullPointerException: Cannot get property 'id' on null object @ line 36
Repro:
Never have installed or run Color coordinator.
Choose it from the mobile app for smart apps.
Result:
red error at the top of the mobile app: You are not authorized to perform the requested operation
using the graph.smartthings website and live logging, you can see the actual error is: java.lang.NullPointerException: Cannot get property 'id' on null object @ line 36
Expected:
No error and to see the config UI for Color Coordinator.
The line is:
def masterInList = slaves.id.find{it==master.id}
If this is the very first time the smartapp is installed/run, then there is no slaves object. The object is null/undefined. Therefore, it is not possible to get the id property on it. And therefore, the java exception occurs.
The text was updated successfully, but these errors were encountered:
java.lang.NullPointerException: Cannot get property 'id' on null object @ line 36
Repro:
Never have installed or run Color coordinator.
Choose it from the mobile app for smart apps.
Result:
red error at the top of the mobile app:
You are not authorized to perform the requested operation
using the graph.smartthings website and live logging, you can see the actual error is:
java.lang.NullPointerException: Cannot get property 'id' on null object @ line 36
Expected:
No error and to see the config UI for Color Coordinator.
This appears to be related to the recent commit
3835dcc#diff-d876d2aa4e1acf5dfb8f5f07f2e7c120R36
The line is:
def masterInList = slaves.id.find{it==master.id}
If this is the very first time the smartapp is installed/run, then there is no slaves object. The object is null/undefined. Therefore, it is not possible to get the id property on it. And therefore, the java exception occurs.
The text was updated successfully, but these errors were encountered: