JS Debugger: Fix EA-133086 - IOOBE: NameMapper.doMap

This commit is contained in:
Viktor Shatrov
2018-12-04 14:27:53 +03:00
parent e9cd80c3ec
commit 1bbee26cbc
@@ -32,7 +32,7 @@ open class NameMapper(private val document: Document, private val transpiledDocu
protected fun doMap(identifierOrNamedElement: PsiElement, mapBySourceCode: Boolean): String? {
val mappings = getMappingsForElement(identifierOrNamedElement)
if (mappings == null) return null
if (mappings == null || mappings.isEmpty()) return null
val sourceEntry = mappings[0]
val generatedName: String?
try {