Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic java.lang.NullPointerException while loading   (Read 1774 times)
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
java.lang.NullPointerException while loading  
Nov 12th, 2009 at 1:37pm
Print Post  
Hi,

I am getting following exception while loading text in linktables first time for the lines

tblNode.getCell(0, 0).setText(....);
tblNode.getCell(1, 0).setText(.....);



Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.mindfusion.diagramming.TextLayout.a(Unknown Source)
at com.mindfusion.diagramming.TextLayout.a(Unknown Source)
at com.mindfusion.diagramming.Cell.a(Unknown Source)
at com.mindfusion.diagramming.TableNode.a(Unknown Source)
at com.mindfusion.diagramming.TableNode.draw(Unknown Source)
at com.mindfusion.diagramming.Diagram.a(Unknown Source)
at com.mindfusion.diagramming.Diagram.b(Unknown Source)
at com.mindfusion.diagramming.Diagram.a(Unknown Source)
at com.mindfusion.diagramming.DiagramView.a(Unknown Source)
at com.mindfusion.diagramming.DiagramView.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: java.lang.NullPointerException while loading  
Reply #1 - Nov 12th, 2009 at 2:46pm
Print Post  
This usually happens if the diagram is being drawn by the Swing UI thread while you are setting properties from another thread. The easiest solution is to not add items to the diagram before their properties are all set.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint