mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-77459 - NPE: RefactoringChangeUtil.getTypeByExpression
This commit is contained in:
@@ -46,7 +46,7 @@ public class RefactoringChangeUtil {
|
||||
}
|
||||
|
||||
public static PsiType getTypeByExpression(PsiExpression expr) {
|
||||
PsiType type = expr.getType();
|
||||
PsiType type = expr != null ? expr.getType() : null;
|
||||
if (type == null) {
|
||||
if (expr instanceof PsiArrayInitializerExpression) {
|
||||
PsiExpression[] initializers = ((PsiArrayInitializerExpression)expr).getInitializers();
|
||||
|
||||
Reference in New Issue
Block a user