mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-91567 - PIEAE: PsiInvalidElementAccessException.createByNode
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -28,7 +28,6 @@ import com.intellij.psi.codeStyle.JavaCodeStyleManager;
|
||||
import com.intellij.psi.impl.source.resolve.DefaultParameterTypeInferencePolicy;
|
||||
import com.intellij.psi.util.PsiTreeUtil;
|
||||
import com.intellij.psi.util.TypeConversionUtil;
|
||||
import com.intellij.util.Function;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -75,6 +74,7 @@ public class ChangeTypeArgumentsFix implements IntentionAction, HighPriorityActi
|
||||
|
||||
@Override
|
||||
public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile file) {
|
||||
if (!myPsiClass.isValid() || !myTargetMethod.isValid()) return false;
|
||||
final PsiTypeParameter[] typeParameters = myPsiClass.getTypeParameters();
|
||||
if (typeParameters.length > 0) {
|
||||
if (myNewExpression != null && myNewExpression.isValid() && myNewExpression.getArgumentList() != null) {
|
||||
|
||||
Reference in New Issue
Block a user