Fix EA-79598: getNode() in JspxImportListImpl returns null

This commit is contained in:
Yan Zhulanow
2016-03-25 16:09:31 +03:00
parent a6610d1b0c
commit 047828bd6d
@@ -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