Skip to content

Commit

Permalink
MID-8063 tentative fix for NPE, couldn't properly reproduce
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Aug 30, 2022
1 parent 6d3c923 commit de3ebf8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public boolean hasAllDefinitions(List<SearchItemDefinition> definitions) {
for (SearchItemDefinition def : definitions) {
boolean exists = false;
for (SearchItemDefinition existingDef : getAllDefinitions()) {
if (existingDef.getPath() != null && QNameUtil.match(existingDef.getPath().lastName(), def.getPath().lastName())) {
if (def.getPath() != null && existingDef.getPath() != null && QNameUtil.match(existingDef.getPath().lastName(), def.getPath().lastName())) {
exists = true;
break;
}
Expand Down

0 comments on commit de3ebf8

Please sign in to comment.