Skip to content

Commit 480fd73

Browse files
authored
Fix ClassCastException when array values is set as List (#794)
1 parent 4bdaf8e commit 480fd73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack-core/src/main/java/org/msgpack/value/Variable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ public Variable setArrayValue(List<Value> v)
817817
{
818818
this.type = Type.LIST;
819819
this.accessor = arrayAccessor;
820-
this.objectValue = v.toArray();
820+
this.objectValue = v.toArray(new Value[v.size()]);
821821
return this;
822822
}
823823

0 commit comments

Comments
 (0)