From d49354bdacf259e5ce8b82f29662da444dce6b0c Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Tue, 21 Mar 2017 21:48:03 +0300 Subject: [PATCH] Fix another exception while rendering labels --- .../teavm/backend/javascript/rendering/StatementRenderer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java b/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java index 68d684967..c8902b989 100644 --- a/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java +++ b/core/src/main/java/org/teavm/backend/javascript/rendering/StatementRenderer.java @@ -323,8 +323,7 @@ public class StatementRenderer implements ExprVisitor, StatementVisitor { blockIndexMap.add(mappedIndex); blockIds.add(RenderingUtil.indexToId(mappedIndex)); } - mappedIndex = blockIndexMap.get(index); - return blockIds.get(mappedIndex); + return blockIds.get(index); } @Override