File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/main/java/com/arangodb/internal/velocypack Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -277,10 +277,12 @@ public class VPackDeserializers {
277
277
}
278
278
279
279
final VPackSlice optimizeTopK = vpack .get ("optimizeTopK" );
280
- final Iterator <VPackSlice > optimizeTopKIterator = optimizeTopK .arrayIterator ();
281
- while (optimizeTopKIterator .hasNext ()) {
282
- String o = context .deserialize (optimizeTopKIterator .next (), String .class );
283
- properties .addOptimizeTopK (o );
280
+ if (optimizeTopK .isArray ()) {
281
+ final Iterator <VPackSlice > optimizeTopKIterator = optimizeTopK .arrayIterator ();
282
+ while (optimizeTopKIterator .hasNext ()) {
283
+ String o = context .deserialize (optimizeTopKIterator .next (), String .class );
284
+ properties .addOptimizeTopK (o );
285
+ }
284
286
}
285
287
286
288
return properties ;
You can’t perform that action at this time.
0 commit comments