Skip to content

Commit

Permalink
Fix ClassCastException when array values is set as List (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
takezoe authored Jan 21, 2024
1 parent 4bdaf8e commit 480fd73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msgpack-core/src/main/java/org/msgpack/value/Variable.java
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ public Variable setArrayValue(List<Value> v)
{
this.type = Type.LIST;
this.accessor = arrayAccessor;
this.objectValue = v.toArray();
this.objectValue = v.toArray(new Value[v.size()]);
return this;
}

Expand Down

0 comments on commit 480fd73

Please sign in to comment.