mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEADEV-41634: Groovy: NPE at GenericInlineHandler.invoke()
This commit is contained in:
+4
@@ -26,6 +26,7 @@ import com.intellij.refactoring.HelpID;
|
||||
import com.intellij.refactoring.util.CommonRefactoringUtil;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.plugins.groovy.lang.psi.api.statements.GrVariable;
|
||||
import org.jetbrains.plugins.groovy.lang.psi.api.statements.typedef.GrTypeDefinition;
|
||||
import org.jetbrains.plugins.groovy.lang.psi.api.statements.typedef.members.GrMethod;
|
||||
import org.jetbrains.plugins.groovy.lang.psi.api.util.GrVariableDeclarationOwner;
|
||||
import org.jetbrains.plugins.groovy.refactoring.GroovyRefactoringBundle;
|
||||
@@ -50,6 +51,9 @@ public class GroovyInlineHandler implements InlineHandler {
|
||||
String message = GroovyRefactoringBundle.message("wrong.element.to.inline");
|
||||
CommonRefactoringUtil.showErrorHint(element.getProject(), editor, message, INLINE_REFACTORING, HelpID.INLINE_VARIABLE);
|
||||
}
|
||||
if (element instanceof GrTypeDefinition) {
|
||||
return null; //todo inline to anonymous class, push members from super class
|
||||
}
|
||||
}
|
||||
|
||||
if (element instanceof PsiMember) {
|
||||
|
||||
Reference in New Issue
Block a user