Skip to content

Commit 27158e4

Browse files
authored
Merge pull request #71 from LiamYao/master
fix structure view OutOfBoundsException
2 parents d4d8ad1 + bb3960a commit 27158e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/tang/intellij/lua/editor/structure/LuaStructureVisitor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class LuaStructureVisitor : LuaVisitor() {
103103

104104
// We're only interested in named entities
105105
repeat(variableNames.size) { i ->
106-
val expr = expressions?.get(i)
106+
val expr = expressions?.getOrNull(i)
107107
val nameExpr = variableNames[i]
108108
val name = nameExpr.name ?: return
109109

0 commit comments

Comments
 (0)