Results 1 to 5 of 5
- 04-01-2010, 02:06 PM #1
Member
- Join Date
- Feb 2010
- Posts
- 9
- Rep Power
- 0
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
I seem to have this problem that wont allow my program to run. I get an exception with the following...
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(ImageIcon.java:167)
at GUI.initComponents(GUI.java:355)
at GUI.<init>(GUI.java:30)
at GUI$21.run(GUI.java:1583)
at java.awt.event.InvocationEvent.dispatch(Invocation Event.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 597)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:122)
BUILD SUCCESSFUL (total time: 1 second)
can anyone help??
- 04-01-2010, 02:25 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,601
- Blog Entries
- 7
- Rep Power
- 17
- 04-01-2010, 08:28 PM #3
Senior Member
- Join Date
- Dec 2008
- Posts
- 526
- Rep Power
- 0
- 04-01-2010, 09:37 PM #4
Member
- Join Date
- Feb 2010
- Posts
- 9
- Rep Power
- 0
Im not even sure where the problem is....Im using netbeans and this is what it tells me..
- 04-01-2010, 10:34 PM #5
NullPointerException (Java Platform SE 6) says
Java Code:Thrown when an application attempts to use null in a case where an object is required. These include: * Calling the instance method of a null object. * Accessing or modifying the field of a null object. * Taking the length of null as if it were an array. * Accessing or modifying the slots of null as if it were an array. * Throwing null as if it were a Throwable value. Applications should throw instances of this class to indicate other illegal uses of the null object.
analyzing your code you should localize where an object reference points to null. the numbers in the printStackTrace are the line numbers of the code and helps you to find the location where the exception was thrown.
Similar Threads
-
help debugging: exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
By freqrush in forum AWT / SwingReplies: 5Last Post: 08-26-2009, 11:37 AM -
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
By nikx_8_7 in forum AWT / SwingReplies: 6Last Post: 08-03-2009, 08:58 PM -
[SOLVED] pls help :S . "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerE
By ara in forum New To JavaReplies: 10Last Post: 01-29-2009, 08:00 AM -
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
By iuna in forum AWT / SwingReplies: 12Last Post: 10-05-2008, 06:52 AM -
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
By hemanthjava in forum AWT / SwingReplies: 3Last Post: 01-29-2008, 01:37 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks