mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
EA-30860 - NPE: CreatePropertyFromUsageFix.invokeImpl (cherry picked from commit 7d06148)
This commit is contained in:
+1
@@ -247,6 +247,7 @@ public class CreatePropertyFromUsageFix extends CreateFromUsageBaseFix {
|
||||
builder.setEndVariableAfter(body.getLBrace());
|
||||
|
||||
accessor = CodeInsightUtilBase.forcePsiPostprocessAndRestoreElement(accessor);
|
||||
LOG.assertTrue(accessor != null);
|
||||
targetClass = accessor.getContainingClass();
|
||||
LOG.assertTrue(targetClass != null);
|
||||
Template template = builder.buildTemplate();
|
||||
|
||||
Reference in New Issue
Block a user