Skip to content

Commit

Permalink
npe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Mar 11, 2024
1 parent 112c4e5 commit b0459ed
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -212,7 +212,11 @@ protected final Collection<SelectorOptions<GetOperationOptions>> getSearchOption
} else {
if (ResourceType.class.equals(getType()) || ShadowType.class.equals(getType())) {
GetOperationOptions root = SelectorOptions.findRootOptions(options);
root.setNoFetch(Boolean.TRUE);
if (root == null) {
options.add(new SelectorOptions<>(GetOperationOptions.createNoFetch()));
} else {
root.setNoFetch(Boolean.TRUE);
}
}
}
return options;
Expand Down

0 comments on commit b0459ed

Please sign in to comment.