Open l0nax opened 3 years ago
Any updates to this issue @vmihailenco?
@l0nax facing the same issue, despite not being merged, has it worked for you ?
@vmihailenco have you considered this fix, are there any concerns? It seems the issue has not been addressed in the latter versions.
The interface field isn't set to
nil
when msgpack code isnil
.Expected Behavior
The field value of the struct is set to
nil
.Current Behavior
Application is panic'ing:
Possible Solution
When a field is of type
interface{}
functiondecodeInterfaceValue(…)
will be called. It should be checked if the next code, is nil and thenil
behavior should be respected by theinterfaceValue(…)
method.We've developed a patch – debugged and tested – but since we're not really familiar with the library this patch might be incomplete.
Steps to Reproduce
Context (Environment)
Detailed Description
See above
Possible Implementation