GuessManagerImpl: null-check. Fixed EA-113310

This commit is contained in:
Tagir Valeev
2017-11-29 09:39:13 +07:00
parent c34c534d58
commit 389eff6ef9
@@ -437,7 +437,7 @@ public class GuessManagerImpl extends GuessManager {
if (type instanceof PsiIntersectionType) {
myResult.putValues((PsiExpression)myForPlace, Arrays.asList(((PsiIntersectionType)type).getConjuncts()));
}
else {
else if (type != null) {
myResult.putValue((PsiExpression)myForPlace, type);
}
}