mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
EA-33078 - assert: TypeMigrationLabeler.migrateExpressionType
skip expressions with null type
This commit is contained in:
@@ -249,9 +249,7 @@ public class TypeMigrationLabeler {
|
||||
public void migrateExpressionType(final PsiExpression expr, final PsiType migrationType, final PsiElement place, boolean alreadyProcessed, final boolean isCovariant) {
|
||||
PsiType originalType = expr.getType();
|
||||
|
||||
LOG.assertTrue(originalType != null);
|
||||
|
||||
if (originalType.equals(migrationType)) return;
|
||||
if (originalType == null || originalType.equals(migrationType)) return;
|
||||
|
||||
if (originalType.equals(PsiType.NULL)) {
|
||||
if (migrationType instanceof PsiPrimitiveType) {
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@ public class RootTypeConversionRule extends TypeConversionRule {
|
||||
}
|
||||
|
||||
if (!originalType.equals(type)) {
|
||||
labeler.migrateExpressionType(actualParams[i], methodTypeParamsSubstitutor.substitute(type), context, originalType.equals(type), true);
|
||||
labeler.migrateExpressionType(actualParams[i], methodTypeParamsSubstitutor.substitute(type), context, false, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user