[1.9.0] java.lang.NullPointerException: Cannot invoke "com.ra4king.circuitsim.simulator.CircuitState.getComponentProperty(com.ra4king.circuitsim.simulator.Component)" because "parentState" is null #89
java.version=17.0.5
java.vendor=Private Build
java.vm.specification.version=17
java.vm.specification.vendor=Oracle Corporation
java.vm.specification.name=Java Virtual Machine Specification
java.vm.version=17.0.5+8-Ubuntu-2ubuntu122.04
java.vm.vendor=Private Build
java.vm.name=OpenJDK 64-Bit Server VM
java.specification.version=17
java.specification.vendor=Oracle Corporation
java.specification.name=Java Platform API Specification
os.name=Linux
os.arch=amd64
os.version=5.15.49-linuxkit
CircuitSim version=1.9.0 2110 version
java.lang.NullPointerException: Cannot invoke "com.ra4king.circuitsim.simulator.CircuitState.getComponentProperty(com.ra4king.circuitsim.simulator.Component)" because "parentState" is null
at com.ra4king.circuitsim.simulator.components.Subcircuit.getSubcircuitState(Subcircuit.java:115)
at com.ra4king.circuitsim.gui.CircuitSim.getSubcircuitStates(CircuitSim.java:1039)
at com.ra4king.circuitsim.gui.CircuitSim.getSubcircuitStates(CircuitSim.java:1045)
at com.ra4king.circuitsim.gui.CircuitSim.lambda$circuitModified$27(CircuitSim.java:974)
at java.base/java.util.HashMap$Values.forEach(HashMap.java:1065)
at com.ra4king.circuitsim.gui.CircuitSim.lambda$circuitModified$28(CircuitSim.java:965)
at com.ra4king.circuitsim.simulator.Simulator.runSync(Simulator.java:57)
at com.ra4king.circuitsim.gui.CircuitSim.circuitModified(CircuitSim.java:961)
at com.ra4king.circuitsim.gui.CircuitBoard.finalizeMove(CircuitBoard.java:615)
at com.ra4king.circuitsim.gui.CircuitManager.mayThrow(CircuitManager.java:582)
at com.ra4king.circuitsim.gui.CircuitManager.modifiedSelection(CircuitManager.java:293)
at com.ra4king.circuitsim.gui.CircuitSim.modifiedSelection(CircuitSim.java:758)
at com.ra4king.circuitsim.gui.CircuitSim.modifiedSelection(CircuitSim.java:751)
at com.ra4king.circuitsim.gui.CircuitSim.clearSelection(CircuitSim.java:733)
at com.ra4king.circuitsim.gui.CircuitSim.checkUnsavedChanges(CircuitSim.java:1076)
at com.ra4king.circuitsim.gui.CircuitSim.lambda$showWindow$122(CircuitSim.java:2627)
at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at javafx.base/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at javafx.base/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at javafx.base/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.base/javafx.event.Event.fireEvent(Event.java:198)
at javafx.graphics/com.sun.javafx.stage.WindowPeerListener.closing(WindowPeerListener.java:93)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:147)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassWindowEventHandler.run(GlassWindowEventHandler.java:40)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassWindowEventHandler.lambda$handleWindowEvent$4(GlassWindowEventHandler.java:176)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:390)
at javafx.graphics/com.sun.javafx.tk.quantum.GlassWindowEventHandler.handleWindowEvent(GlassWindowEventHandler.java:174)
at javafx.graphics/com.sun.glass.ui.Window.handleWindowEvent(Window.java:1346)
at javafx.graphics/com.sun.glass.ui.Window.notifyClose(Window.java:1246)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)
at java.base/java.lang.Thread.run(Thread.java:833)