Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Java (http://www.programmingforums.org/forum17.html)
-   -   an error? (http://www.programmingforums.org/showthread.php?t=11769)

dsbabyGurl Nov 1st, 2006 9:30 AM

an error?
 
I just want to ask wat this error means... thaz all.... and im used to no one replying so its ok.. maybe nobody is coz im asking too many questions.. i just want sumone to help me thaz all, if nobody will its ok.. thanks.... well heres the code...


:

--------------------Configuration: <Default>--------------------
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at compJoin.<init>(compJoin.java:44)
    at PEOFrame.buildJoin2(PEOFrame.java:260)
    at PEOFrame$2.actionPerformed(PEOFrame.java:152)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1778)

    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    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)

Process completed.


The Dark Nov 1st, 2006 10:37 AM

How can anyone help you with your code if you don't post it?

Infinite Recursion Nov 1st, 2006 11:40 AM

Post the code... "thaz" all :)

Arevos Nov 1st, 2006 12:28 PM

NullPointerExceptions occur when a variable has the value "null" when it is not expected. For instance:
:

  1. string myName = null;
  2. int lengthOfMyName = myName.length();

This code will throw a NullPointerException, because you cannot access the length method on a null value.

NullPointerExceptions are a very common error, and some can be very tricky to spot. The only way to diagnose the error is to see the source code. The error stack trace simply doesn't contain enough information to come to a firm conclusion about the cause of the error.

bl00dninja Nov 4th, 2006 3:15 AM

OMG! LOL!!!!!!!!1111ONE.

i never would have thought of that.




ur gay


All times are GMT -5. The time now is 1:10 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC