mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix NPE (EA-20675)
This commit is contained in:
@@ -56,7 +56,9 @@ public class EnumMacro implements Macro{
|
||||
|
||||
for (Expression param : params) {
|
||||
Result object = param.calculateResult(context);
|
||||
set.add(LookupElementBuilder.create(object.toString()));
|
||||
if (object != null) {
|
||||
set.add(LookupElementBuilder.create(object.toString()));
|
||||
}
|
||||
}
|
||||
return set.toArray(new LookupElement[set.size()]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user