Suppressed warnings where the thing warned about is intentional
[Mograsim.git] / LogicUI / src / era / mi / gui / model / components / GUIManualSwitch.java
index c45224a..b2a8b01 100644 (file)
@@ -55,7 +55,8 @@ public class GUIManualSwitch extends GUIComponent
        @Override
        public boolean clicked(double x, double y)
        {
-               logicSwitch.toggle();
+               if (logicSwitch != null)
+                       logicSwitch.toggle();
                return true;
        }