fix false NPE alarms on fields

This commit is contained in:
peter
2012-06-26 22:02:48 +02:00
parent f1af0a9360
commit 819b68ec81
2 changed files with 12 additions and 3 deletions
@@ -59,7 +59,7 @@ public class DfaVariableState implements Cloneable {
}
List<PsiExpression> initializers = NullableStuffInspection.findAllConstructorInitializers((PsiField)var);
if (!nullable && initializers.isEmpty()) {
if (initializers.isEmpty()) {
return false;
}
@@ -78,7 +78,7 @@ public class DfaVariableState implements Cloneable {
return false;
}
}
return true;
return !nullable;
}
protected DfaVariableState(final DfaVariableState toClone) {