Menu

#135 NullPointerException in PluggableRendererDemo

open
nobody
None
5
2009-11-04
2009-11-04
Anonymous
No

The demo crashes when you check the box to show the voltage values.

Stack trace:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at edu.uci.ics.jung.visualization.decorators.NumberFormattingTransformer.transform(NumberFormattingTransformer.java:39)
at edu.uci.ics.jung.visualization.decorators.NumberFormattingTransformer.transform(NumberFormattingTransformer.java:24)
at edu.uci.ics.jung.visualization.renderers.BasicRenderer.renderVertexLabel(BasicRenderer.java:75)
at edu.uci.ics.jung.visualization.renderers.BasicRenderer.render(BasicRenderer.java:60)
at edu.uci.ics.jung.visualization.BasicVisualizationServer.renderGraph(BasicVisualizationServer.java:367)
at edu.uci.ics.jung.visualization.BasicVisualizationServer.paintComponent(BasicVisualizationServer.java:321)
at javax.swing.JComponent.paint(JComponent.java:1006)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4972)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4925)
at javax.swing.JComponent._paintImmediately(JComponent.java:4868)
at javax.swing.JComponent.paintImmediately(JComponent.java:4675)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Discussion

  • shearn89

    shearn89 - 2009-11-12

    I can't replicate your bug - are you using the latest version of the cvs? Can you detail what other boxes/settings are checked?

     
  • Joshua O'Madadhain

    This was due to a bug in PRD's use of NumberFormattingTransformer. It has been fixed in CVS and the fix will be in the next release.

    Joshua

     

Log in to post a comment.

MongoDB Logo MongoDB