Fix index out of bounds exception
This commit is contained in:
parent
c4f8b65ba4
commit
38ea9a9fb5
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue