-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
device.clean() should not set reportedProp to null #164
Comments
Sorry for the delay on this fix. The fix has been checked in as of b1b4a46 The fix will be in the next release. I will update this thread when that happens |
It will take a few days for the release to propagate up to Maven central, but our latest release will fix this issue for you: https://github.com/Azure/azure-iot-sdk-java/releases/tag/2018-1-23 I am closing this issue for now. Feel free to re-open if you still run into problems here. |
OS and version used: MAC OS X 10.11.6
Java runtime used: Android JDK 1.7
SDK version used: iot-device-client:1.5.35
Description of the issue:
The abstract class
Device
inpackage com.microsoft.azure.sdk.iot.device.DeviceTwin;
contains a methodclean()
which sets thereportedProp
to null. However if a user callssetReportedProp
afterwards, the code throws aNullPointerException
becausereportedProp
was set tonull
instead of being clearCode sample exhibiting the issue:
The text was updated successfully, but these errors were encountered: