NeuronRobotics / java-bowler

A library for controlling Bowler devices with Java
GNU Lesser General Public License v3.0
12 stars 5 forks source link

Null Reference Exception adding Print Status Listeners #3

Closed DrVulpinus closed 10 years ago

DrVulpinus commented 10 years ago

In the constructor of NRPrinter, the printStatusListeners are added to the parser and the slicer, both of which have not been initialized.

Here is the stack trace:

java.lang.NullPointerException at com.neuronrobotics.replicator.driver.NRPrinter.addPrinterStatusListener(NRPrinter.java:102) at com.neuronrobotics.replicator.driver.NRPrinter.setDeltaDevice(NRPrinter.java:130) at com.neuronrobotics.replicator.driver.NRPrinter.(NRPrinter.java:29) at com.neuronrobotics.nrconsole.plugin.JobExec.NRConsoleJobExecPlugin.setConnection(NRConsoleJobExecPlugin.java:48) at com.neuronrobotics.nrconsole.plugin.PluginManager.connect(PluginManager.java:124) at com.neuronrobotics.nrconsole.MenuBar.connect(MenuBar.java:163) at com.neuronrobotics.nrconsole.NRConsole$showManager.run(NRConsole.java:86)