codersaur / SmartThings

Samsung SmartThings SmartApps and Device Handlers
Apache License 2.0
300 stars 541 forks source link

When Setting Dimmer Level - java.lang.NullPointerException: Cannot invoke method and() on null object @ line 481 #25

Open Dunce001 opened 6 years ago

Dunce001 commented 6 years ago

Hi - thanks for the work you've obviously put into this :)

I have a couple of issues - not sure if they mean anything to you or they can be fixed or not. I will put them into separate posts so that other people can see and follow them more easily.

1) When I try to set the dimmer level from the app tile - I get: "java.lang.NullPointerException: Cannot invoke method and() on null object @ line 481" extract from Live Logging below:

15:06:50: error java.lang.NullPointerException: Cannot invoke method and() on null object @ line 481 15:06:50: info Dimmer level is 90% 15:06:50: info Dimmer turned on. 15:06:31: info Setting dimmer to 90% 5:06:30: error java.lang.NullPointerException: Cannot invoke method and() on null object @ line 481

Many thanks, Mark

mrmoorey commented 6 years ago

Surely all the '&' logic should be '&&' otherwise it becomes bitwise. Is this what was intended?