mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-36142 - NPE: TypeConversionUtil.visitArrayType
This commit is contained in:
@@ -1213,7 +1213,7 @@ public class TypeConversionUtil {
|
||||
final PsiType componentType = ellipsisType.getComponentType();
|
||||
final PsiType newComponentType = componentType.accept(this);
|
||||
if (newComponentType == componentType) return ellipsisType;
|
||||
return new PsiArrayType(newComponentType);
|
||||
return newComponentType != null ? newComponentType.createArrayType() : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1221,7 +1221,7 @@ public class TypeConversionUtil {
|
||||
final PsiType componentType = arrayType.getComponentType();
|
||||
final PsiType newComponentType = componentType.accept(this);
|
||||
if (newComponentType == componentType) return arrayType;
|
||||
return newComponentType.createArrayType();
|
||||
return newComponentType != null ? newComponentType.createArrayType() : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user