Skip to content

Commit

Permalink
npe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Apr 15, 2024
1 parent 63728a4 commit eb9932b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void annotate(@NotNull PsiElement element, @NotNull AnnotationHolder hold

List<QName> path = toQNames(tags.subList(1, tags.size()));
ItemDefinition def = objectDefinition.findItemDefinition(ItemPath.create(path));
if (!def.isMultiValue() || !(def instanceof PrismContainerDefinition<?>)) {
if (def == null || !def.isMultiValue() || !(def instanceof PrismContainerDefinition<?>)) {
return;
}

Expand Down

0 comments on commit eb9932b

Please sign in to comment.