Skip to content
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

Why? #152

Open
caffeine-mgn opened this issue May 27, 2021 · 1 comment
Open

Why? #152

caffeine-mgn opened this issue May 27, 2021 · 1 comment

Comments

@caffeine-mgn
Copy link

Version 4.12
Class com.cedarsoftware.util.io.ObjectResolver
Method: assignField
Line: 222

                else if (rhs instanceof String && "".equals(((String) rhs).trim()) && fieldType != String.class)
                {   // Allow "" to null out a non-String field
                    field.set(target, null);
                }
@caffeine-mgn
Copy link
Author

I have some common result object like

data class Response(val result: Any? = null, val exception: Boolean = false)

And when my service returns empty string I got null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant