From 95042a729f400878207fc3fc92c053d3f5e1126a Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Fri, 21 Nov 2014 22:11:15 +0300 Subject: [PATCH] Fixed NPE --- .../jetbrains/jet/lang/resolve/lazy/PartialBodyResolveFilter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/ide-common/src/org/jetbrains/jet/lang/resolve/lazy/PartialBodyResolveFilter.kt b/idea/ide-common/src/org/jetbrains/jet/lang/resolve/lazy/PartialBodyResolveFilter.kt index 570b8a7bf91..d32ec9544f0 100644 --- a/idea/ide-common/src/org/jetbrains/jet/lang/resolve/lazy/PartialBodyResolveFilter.kt +++ b/idea/ide-common/src/org/jetbrains/jet/lang/resolve/lazy/PartialBodyResolveFilter.kt @@ -198,7 +198,7 @@ class PartialBodyResolveFilter( } } - condition.accept(this) + condition?.accept(this) if (thenBranch != null && elseBranch != null) { val thenCasts = potentialSmartCastPlaces(thenBranch, filter)