Minor: Fix compilation

(cherry picked from commit 5397e11)
This commit is contained in:
Alexey Sedunov
2016-06-30 16:44:50 +03:00
parent 2abcd17713
commit 79f73d3cc2
@@ -181,7 +181,7 @@ class KotlinInlineValHandler : InlineActionHandler() {
project.executeWriteCommand(RefactoringBundle.message("inline.command", name)) {
val inlinedExpressions = chosenExpressions
.flatMap { referenceExpression ->
if (assignments.contains(referenceExpression.parent)) return@flatMap emptyList<KtExpression>()
if (assignments.contains(referenceExpression!!.parent)) return@flatMap emptyList<KtExpression>()
val importDirective = referenceExpression.getStrictParentOfType<KtImportDirective>()
if (importDirective != null) {