This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.
Bug in value2Interface(): reflect.Bytes() called on Array value #1345
Labels
I noticed that in value2Interface function in session_convert.go, we are using
reflect.Value.Bytes()
function when the fieldType isreflect.Array
ORreflect.Slice
. However, go'sreflect.Value.Bytes()
only works when the value is of typereflect.Slice
, and panics otherwise.I would propose that change the if condition from:
to
The text was updated successfully, but these errors were encountered: