Fixed stupid bug causing NullPointerExceptions in GUIWire
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Tue, 28 May 2019 09:58:57 +0000 (11:58 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Tue, 28 May 2019 09:58:57 +0000 (11:58 +0200)
LogicUI/src/era/mi/gui/model/wires/GUIWire.java

index c4cb2f1..8ecf1c4 100644 (file)
@@ -28,6 +28,9 @@ public class GUIWire
                        this.path[dstI + 1] = path[srcI].y;
                }
 
+               this.pin1 = pin1;
+               this.pin2 = pin2;
+
                pin1.addPinMovedListener(p -> pin1Moved());
                pin2.addPinMovedListener(p -> pin2Moved());
                pin1Moved();