mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-32366: fix NPE in GormPropertiesListReferenceReferenceProvider.
This commit is contained in:
+6
-2
@@ -149,8 +149,12 @@ public class CompleteReferenceExpression {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static LookupElementBuilder createPropertyLookupElement(@NotNull String name, @NotNull PsiType type) {
|
||||
return LookupElementBuilder.create(name).setIcon(GroovyIcons.PROPERTY).setTypeText(type.getPresentableText());
|
||||
public static LookupElementBuilder createPropertyLookupElement(@NotNull String name, @Nullable PsiType type) {
|
||||
LookupElementBuilder res = LookupElementBuilder.create(name).setIcon(GroovyIcons.PROPERTY);
|
||||
if (type != null) {
|
||||
res = res.setTypeText(type.getPresentableText());
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user