TenKeyAngle / dataturbine

Automatically exported from code.google.com/p/dataturbine
1 stars 0 forks source link

rbnbPlot throws NullPointerException on chans w/o MIME #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In releases V3.1B4 and V3.1, rbnbPlot will throw a NullPointerException
when the user selects a channel whose name doesn't end in "jpg" or "jpeg"
and for which there is no MIME type set.

To reproduce the problem:
1. Start an RBNB server
2. Start rbnbPlot (compiled from the current trunk code or V3.1B4 or V3.1)
3. Connect rbnbPlot to the Server and try to display the
_Metrics/SocketRate channel.

Doing the above procedure will result in the following exception:

Exception in thread "rbnbThread" java.lang.NullPointerException
        at com.rbnb.plot.PlotsContainer.addPlot(PlotsContainer.java:373)
        at com.rbnb.plot.RBNBInterface.changeChannels(RBNBInterface.java:1020)
        at com.rbnb.plot.RBNBInterface.run(RBNBInterface.java:755)
        at java.lang.Thread.run(Thread.java:619)

Original issue reported on code.google.com by john.wil...@erigo.com on 2 Jul 2008 at 7:50

GoogleCodeExporter commented 9 years ago
Bug fixed (rev 149)

Made a change in 
trunk/Source/Applications/Plot/com/rbnb/plot/PlotsContainer.java,
method addPlot: Add check on regChan.getMime() being null before checking if 
mime is
"jpg" or "jpeg".

Original comment by john.wil...@erigo.com on 9 Jul 2008 at 6:22