mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-23 23:50:28 -06:00
Merge pull request #1990 from cognitree/fix-dapi-delete-one-null-pointer
Fixing a nullpointer error for delete_one api of dataapi driver adapter
This commit is contained in:
commit
1468f21d14
@ -66,7 +66,10 @@ public class DataApiDeleteOneOpDispenser extends DataApiOpDispenser {
|
||||
}
|
||||
|
||||
private float[] getVectorFromOp(ParsedOp op, long l) {
|
||||
return getVectorValues(op.get("vector", l));
|
||||
if (op.isDefined("vector")) {
|
||||
return getVectorValues(op.get("vector", l));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user