You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's happening under the hood is that it considers that it doesn't find the parameter when it is but the value is actually null. Because of this it tries to instantiate the type using its default constructor:
in the case of Double, there's no default constructor -> instantiation by reflection fails with the aforementioned error
in the case of String, there is a default constructor that returns an empty string (what I'm seeing)
A fix in the above snippet would be to handle when the key isn't present differently than when the value is null (see [1]).
Hello folks,
Even so, I'm getting this error when trying to instantiate from a fixture with a null value in a Double field:
Could you please help me?
Thanks in advance && thanks for the great lib!
The text was updated successfully, but these errors were encountered: