I'm having a similar problem...I got everything to pass the tests (which is what I need to get my grade in class) but it bothers me that I'm getting random NullPointerExceptions and other problems with the Computer.hdl I built. One time the simulator crashed just trying to load the Computer chip without running it!
Unexpected Error: null
java.lang.NullPointerException
...at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1351)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1294)
at javax.swing.plaf.basic.BasicListUI.getCellBounds(BasicListUI.java:935)
at javax.swing.JList.getCellBounds(JList.java:1600)
at javax.swing.JList.ensureIndexIsVisible(JList.java:1116)
at sun.swing.FilePane.ensureIndexIsVisible(FilePane.java:1543)
at sun.swing.FilePane.doDirectoryChanged(FilePane.java:1466)
at sun.swing.FilePane.propertyChange(FilePane.java:1516)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
at java.awt.Component.firePropertyChange(Component.java:8132)
at javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:568)
at SimulatorsGUI.HardwareSimulatorControllerComponent.setWorkingDir(Unknown Source)
at Hack.Controller.HackController.<init>(Unknown Source)
at Hack.HardwareSimulator.HardwareSimulatorController.<init>(Unknown Source)
at Hack.HardwareSimulator.HardwareSimulatorApplication.createController(Unknown Source)
at Hack.Controller.HackApplication.<init>(Unknown Source)
at Hack.HardwareSimulator.HardwareSimulatorApplication.<init>(Unknown Source)
at HardwareSimulatorMain.main(Unknown Source)
I've also had really strange results running programs from other assignments -- in particular Fill.asm the screen (not the HACK computer screen -- the Java window running the simulator) goes crazy.
Note, my same Fill.hack works perfectly in the CPUEmulator.
Any way to debug this or is it just a known bug?