From 047828bd6df6a7f768d0a13966044b230aa4bce1 Mon Sep 17 00:00:00 2001 From: Yan Zhulanow Date: Fri, 25 Mar 2016 16:09:31 +0300 Subject: [PATCH] Fix EA-79598: getNode() in JspxImportListImpl returns null --- .../kotlin/android/inspection/IllegalIdentifierInspection.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/idea-android/src/org/jetbrains/kotlin/android/inspection/IllegalIdentifierInspection.kt b/idea/idea-android/src/org/jetbrains/kotlin/android/inspection/IllegalIdentifierInspection.kt index f849a8e6aa5..9febda18b56 100644 --- a/idea/idea-android/src/org/jetbrains/kotlin/android/inspection/IllegalIdentifierInspection.kt +++ b/idea/idea-android/src/org/jetbrains/kotlin/android/inspection/IllegalIdentifierInspection.kt @@ -34,7 +34,7 @@ class IllegalIdentifierInspection : AbstractKotlinInspection() { override fun buildVisitor(holder: ProblemsHolder, isOnTheFly: Boolean, session: LocalInspectionToolSession): PsiElementVisitor { return object : KtVisitorVoid() { override fun visitElement(element: PsiElement) { - if (element.node.elementType != KtTokens.IDENTIFIER) return + if (element.node?.elementType != KtTokens.IDENTIFIER) return val text = element.text // '`' can't be escaped now