mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
earlier prevention of EA-40567 - assert: PsiSubstitutorImpl$SubstitutionVisitor.visitClassType
This commit is contained in:
@@ -115,6 +115,9 @@ public class DfaTypeValue extends DfaValue {
|
||||
}
|
||||
|
||||
public boolean isConvertibleFrom(DfaTypeValue dfaType) {
|
||||
return dfaType != null && myType.isConvertibleFrom(dfaType.myType);
|
||||
if (dfaType == null) return false;
|
||||
assert myType.isValid() : "my type invalid";
|
||||
assert dfaType.myType.isValid() : " their type invalid";
|
||||
return myType.isConvertibleFrom(dfaType.myType);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user