Fix index out of bounds exception

This commit is contained in:
dotasek 2023-04-06 13:20:40 -04:00
parent c4f8b65ba4
commit 38ea9a9fb5
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ public class SearchParameterValidator extends BaseValidator {
pass.get(i).setOperation(Operation.Union);
pass.get(i).setOpNext(pass.get(i+1));
}
return pass.get(0).toString();
return pass.size() > 0 ? pass.get(0).toString() : null;
}
}