-
Notifications
You must be signed in to change notification settings - Fork 492
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
Setting property to null does not always erase it #243
Comments
Thanks for reporting @tiagoshibata ! |
Update: It is a server side issue and I reported to the service team. Best Regards, |
Closing this issue because it isn't an SDK bug. The tests we disabled while the bug got fixed have been re-enabled, so I don't see a reason to keep this issue open |
@tiagoshibata, @CIPop, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey |
Description of the issue:
Setting a reported property to null should remove that property, as I understand from the docs. It doesn't in some situations.
Code sample exhibiting the issue:
Use breakpoints and observe the device twin after each call. The first call will erase
a
from the document root as expected. The second call is buggy and creates objecta
with keyb
, containingnull
, instead of creating an empty object (I expectb
to be removed). The third call (assigningnull
to a key containingnull
) works as expected (removingb
). It seems like the issue only repros when creating a new object with null values.Somewhat related to #86 .
This affects me when I want to remove keys (right now I would have to first check if the object nesting the key exists before trying to remove it).
The text was updated successfully, but these errors were encountered: