PhilipsHue / HueSDK

Philips Hue Software Development Kit
98 stars 39 forks source link

Bridge null in onBridgeStateUpdated #8

Closed jeroenbeuz closed 6 years ago

jeroenbeuz commented 7 years ago

Sometimes, upon connecting to a bridge, the bridge inside the BridgeStateUpdatedCallback is null. It looks to me that this should not happen. This callback is meant to indicate a bridge has a new state, so therefore the bridge should not be null. I'm currently catching when this occurs, my method looks like this:

`/**

It only happens when I start my app and it connects to a bridge.

jhvdb87 commented 6 years ago

It should not happen indeed. We will investigate the cause.

jeroenbeuz commented 6 years ago

Any updates on this?

jhvdb87 commented 6 years ago

No, there is no update yet on this issue

jhvdb87 commented 6 years ago

I am not able to reproduce the problem. Can you elaborate more on the scenario to reproduce this ?

jeroenbeuz commented 6 years ago

Have not seen this issue anymore. Probably due to bridge update.