From e6387dca6b80ab339b2647acafaadc93efbc91ea Mon Sep 17 00:00:00 2001 From: Fayez Abu Alia Date: Sun, 4 Nov 2018 12:49:11 +0100 Subject: [PATCH] Bug 116 gefixt --- src/de/dhbwstuttgart/bytecode/BytecodeGen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/dhbwstuttgart/bytecode/BytecodeGen.java b/src/de/dhbwstuttgart/bytecode/BytecodeGen.java index 641db6dd0..399abd471 100644 --- a/src/de/dhbwstuttgart/bytecode/BytecodeGen.java +++ b/src/de/dhbwstuttgart/bytecode/BytecodeGen.java @@ -374,7 +374,7 @@ public class BytecodeGen implements ASTVisitor { allCons.removeAll(consToRemove); allCons.addAll(result.keySet()); - if(allCons.size()<2) { + if(!allCons.isEmpty() && allCons.size()<2) { if(!result.containsKey(allCons.get(0))) result.put(allCons.get(0), null);