From 07b77432de026ebee33bf67e91b49b80aadd455a Mon Sep 17 00:00:00 2001 From: Yan Zhulanow Date: Thu, 17 Sep 2015 13:26:59 +0300 Subject: [PATCH] Fix NPE in AndroidPsiTreeChangePreprocessor --- .../android/synthetic/idea/AndroidPsiTreeChangePreprocessor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/android-idea-plugin/src/org/jetbrains/kotlin/android/synthetic/idea/AndroidPsiTreeChangePreprocessor.kt b/plugins/android-idea-plugin/src/org/jetbrains/kotlin/android/synthetic/idea/AndroidPsiTreeChangePreprocessor.kt index 8789722e710..a9c732c8800 100644 --- a/plugins/android-idea-plugin/src/org/jetbrains/kotlin/android/synthetic/idea/AndroidPsiTreeChangePreprocessor.kt +++ b/plugins/android-idea-plugin/src/org/jetbrains/kotlin/android/synthetic/idea/AndroidPsiTreeChangePreprocessor.kt @@ -42,7 +42,7 @@ public class AndroidPsiTreeChangePreprocessor : PsiTreeChangePreprocessor, Simpl return } - if (checkIfLayoutFile(child)) { + if (child != null && checkIfLayoutFile(child)) { incModificationCount() return }