From f90516e53ca57c043e43fd86bc8ccc458f58f68e Mon Sep 17 00:00:00 2001 From: Maik Merten Date: Sat, 26 Jul 2014 18:55:51 +0200 Subject: [PATCH] fix a possible NPE --- src/main/java/com/loomcom/symon/Main.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/loomcom/symon/Main.java b/src/main/java/com/loomcom/symon/Main.java index a1b2096..cb116be 100644 --- a/src/main/java/com/loomcom/symon/Main.java +++ b/src/main/java/com/loomcom/symon/Main.java @@ -66,10 +66,12 @@ public class Main { null, possibilities, "Symon"); - if(s.equals("Symon")) { - machineClass = SymonMachine.class; - } else { + + + if(s != null && s.equals("Multicomp")) { machineClass = MulticompMachine.class; + } else { + machineClass = SymonMachine.class; } }