Skip to content

Commit 0a13191

Browse files
authored
Merge pull request #48 from UCSDOalads/fixBugInInterpreter
fixed bug
2 parents f10fc98 + 8479e93 commit 0a13191

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/script/InterpreterAddLazyJavaClass.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ public class InterpreterAddLazyJavaClass {
1616
public InterpreterAddLazyJavaClass(Tokenizer tokenizer, PaintPanel panel)
1717
throws ExecutionErrorException {
1818
this.panel = panel;
19+
PaintComponent comp = performAddJavaClassAction();
1920
if (tokenizer.hasNext()) {
20-
ComponentMap.map.put(tokenizer.next(), performAddJavaClassAction());
21+
ComponentMap.map.put(tokenizer.next(), comp);
2122
}
2223
}
2324

0 commit comments

Comments
 (0)