Fix Issue 618 | NPE bundle validation

When validating a bundle, with the type, searchset, a NPE would be
thrown if some but not all entities contained a search mode.
This commit is contained in:
Eric Lemieux 2021-10-12 15:59:09 -04:00
parent a9962c94f3
commit dc368e17cb
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ public class BundleValidator extends BaseValidator{
}
Boolean searchMode = readHasSearchMode(entries);
if (searchMode == false) { // if no resources have search mode
if (searchMode != null && searchMode == false) { // if no resources have search mode
boolean typeProblem = false;
String rtype = null;
int count = 0;