-
Notifications
You must be signed in to change notification settings - Fork 620
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
KSerializer.serialize() of nullable type not invoked for null values #824
Labels
Comments
Your serializer is probably being wrapped in another serializer that handles nulls. |
I'm not explicitly wrapping it.
Apart from enabling |
+1, I have the same issue. |
I think the issue happens because serializer is automatically wrapped with a standard |
qwwdfsad
added a commit
that referenced
this issue
Jul 27, 2020
…alizer Effectively enabling custom serialization and deserialization of nulls and non-nulls by properly checking whether descriptor is nullable Fixes #824
qwwdfsad
added a commit
that referenced
this issue
Jul 28, 2020
…alizer Effectively enabling custom serialization and deserialization of nulls and non-nulls by properly checking whether descriptor is nullable Fixes #824
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the project's code there is a nullable value.
Magic not null values need to be deserialized to null.
And nulls need to be serialized to non-null magic values.
While I'm able to deserialize to nulls the serialization does not work.
serialize()
method is not fired and null is passed to serialized form.To Reproduce
Serializer code:
Usage inside serializable class:
Expected behavior
serialize()
method is invoked for nulls.Environment
The text was updated successfully, but these errors were encountered: