changing to a better check

This commit is contained in:
sahankj2000 2024-07-22 16:43:23 +05:30
parent cb52b773d7
commit f9550cc6b6

View File

@ -66,9 +66,8 @@ public class DataApiDeleteOneOpDispenser extends DataApiOpDispenser {
}
private float[] getVectorFromOp(ParsedOp op, long l) {
Object rawVectorObject = op.get("vector", l);
if (rawVectorObject != null) {
return getVectorValues(rawVectorObject);
if (op.isDefined("vector")) {
return getVectorValues(op.get("vector", l));
}
return null;
}