Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

Reply

Join Date: May 2005
Posts: 21
Reputation: hemanth.balaji is an unknown quantity at this point 
Solved Threads: 0
hemanth.balaji hemanth.balaji is offline Offline
Newbie Poster

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

 
0
  #1
Jan 28th, 2008
I am getting the following exception when I am running my Swing Application. But the program continues and does not terminate abruptly unlike general Exceptions

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.plaf.basic.BasicTreeUI.paintRow(BasicTreeUI.java:1399)
at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1189)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
at javax.swing.JComponent.paintComponent(JComponent.java:742)
at javax.swing.JComponent.paint(JComponent.java:1005)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4963)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)
at javax.swing.JComponent._paintImmediately(JComponent.java:4859)
at javax.swing.JComponent.paintImmediately(JComponent.java:4666)
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)


How do I avoid this exception. What would be the cause for such an exception
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 1,630
Reputation: javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all 
Solved Threads: 221
Featured Poster
javaAddict's Avatar
javaAddict javaAddict is offline Offline
Posting Virtuoso

Re: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

 
0
  #2
Jan 28th, 2008
This is part of the stack trace:
BasicTreeUI.paintRow(BasicTreeUI.java:1399)
It means that at the file BasicTreeUI.java, you have an Exception at line 1399 (function paintRow). You are trying to use something that is null.
Check out my New Bike at my Public Profile at the "About Me" tab
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 21
Reputation: hemanth.balaji is an unknown quantity at this point 
Solved Threads: 0
hemanth.balaji hemanth.balaji is offline Offline
Newbie Poster

Re: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

 
0
  #3
Jan 28th, 2008
Originally Posted by javaAddict View Post
This is part of the stack trace:
BasicTreeUI.paintRow(BasicTreeUI.java:1399)
It means that at the file BasicTreeUI.java, you have an Exception at line 1399 (function paintRow). You are trying to use something that is null.
Hi mate,
Yes From the stackTrace I got the point about BasicTreeUI being null. But the fact is its an internal code and I simply dont know why this is being Null. Its a Builtin java class which i did not touch
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 1,630
Reputation: javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all 
Solved Threads: 221
Featured Poster
javaAddict's Avatar
javaAddict javaAddict is offline Offline
Posting Virtuoso

Re: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

 
0
  #4
Jan 28th, 2008
I cannot tell much without the code. But I know for sure that at the specific line there is something which is null and you use it
Check out my New Bike at my Public Profile at the "About Me" tab
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC