mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-51725 - NPE: IntroduceVariableBase.replace
This commit is contained in:
+1
@@ -954,6 +954,7 @@ public abstract class IntroduceVariableBase extends IntroduceHandlerBase {
|
||||
final PsiElement parent = expr1.getUserData(ElementToWorkOn.PARENT);
|
||||
final RangeMarker rangeMarker = expr1.getUserData(ElementToWorkOn.TEXT_RANGE);
|
||||
|
||||
LOG.assertTrue(parent != null, expr1);
|
||||
return parent.replace(createReplacement(ref.getText(), project, prefix, suffix, parent, rangeMarker, new int[1]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user