PSI: Make JetPostfixExpression.getBaseExpression() nullable

#KT-7761 Fixed
This commit is contained in:
Alexey Sedunov
2015-05-19 14:06:00 +03:00
parent 14d1d8e1dc
commit b1f1360081
12 changed files with 158 additions and 11 deletions
@@ -223,7 +223,7 @@ public class JavaNullabilityWarningsChecker : AdditionalTypeChecker {
when (expression) {
is JetPostfixExpression ->
if (expression.getOperationToken() == JetTokens.EXCLEXCL) {
val baseExpression = expression.getBaseExpression()
val baseExpression = expression.getBaseExpression() ?: return
val baseExpressionType = c.trace.getType(baseExpression) ?: return
doIfNotNull(
DataFlowValueFactory.createDataFlowValue(baseExpression, baseExpressionType, c),