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:
Madhavan 2024-07-23 03:16:42 -04:00 committed by GitHub
commit 1468f21d14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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