GuessManagerImpl: ignore null assignment in GuessTypeVisitor (IDEA-CR-29504)

This commit is contained in:
Tagir Valeev
2018-02-18 16:09:39 +07:00
parent 10a913ea51
commit 2c2ee76c0f
@@ -414,7 +414,7 @@ public class GuessManagerImpl extends GuessManager {
if (expression == null) return;
PsiType type = expression.getType();
PsiType rawType = type instanceof PsiClassType ? ((PsiClassType)type).rawType() : type;
if (rawType == null) return;
if (rawType == null || rawType.equals(PsiType.NULL)) return;
if (mySpecificType == null) {
mySpecificType = rawType;
}