Gross Hack for Null Pointer Exception
jakobo opened this issue · comments
For some reason api()
is getting called with null
for a method and the device type is chucking a wobbly. By simply protecting with a default of "status" before calling the API, we're able to ensure the nest re-authentication works when there's a platform update.
before def request = methods.getAt(method)
we can just add
if (method == null) {
method = "status"
}
It means we "tap twice", but since I can't get a stacktrace in smarthings ide, this is a good stop gap in case someone else keeps getting null pointers.
closed, as the issue is likely stale / not applicable at this point