Results 1 to 2 of 2
  1. #1
    QING is offline Member
    Join Date
    Mar 2014
    Rep Power

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

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at ui.MaintainStaff.CreateActionPerformed(MaintainSta
    at ui.MaintainStaff.access$000(
    at ui.MaintainStaff$1.actionPerformed(MaintainStaff.j ava:265)
    at javax.swing.AbstractButton.fireActionPerformed(Abs
    at javax.swing.AbstractButton$Handler.actionPerformed (
    at javax.swing.DefaultButtonModel.fireActionPerformed (
    at javax.swing.DefaultButtonModel.setPressed(DefaultB
    at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(
    at java.awt.Component.processMouseEvent(Component.jav a:6505)
    at javax.swing.JComponent.processMouseEvent(JComponen
    at java.awt.Component.processEvent( 0)
    at java.awt.Container.processEvent( 9)
    at java.awt.Component.dispatchEventImpl(Component.jav a:4861)
    at java.awt.Container.dispatchEventImpl(Container.jav a:2287)
    at java.awt.Component.dispatchEvent( 87)
    at java.awt.LightweightDispatcher.retargetMouseEvent(
    at java.awt.LightweightDispatcher.processMouseEvent(C
    at java.awt.LightweightDispatcher.dispatchEvent(Conta
    at java.awt.Container.dispatchEventImpl(Container.jav a:2273)
    at java.awt.Window.dispatchEventImpl( )
    at java.awt.Component.dispatchEvent( 87)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:729)
    at java.awt.EventQueue.access$200( )
    at java.awt.EventQueue$
    at java.awt.EventQueue$
    at Method)
    at$1.doIntersectionPri vilege(
    at$1.doIntersectionPri vilege(
    at java.awt.EventQueue$
    at java.awt.EventQueue$
    at Method)
    at$1.doIntersectionPri vilege(
    at java.awt.EventQueue.dispatchEvent( 699)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(
    at java.awt.EventDispatchThread.pumpEventsForFilter(E
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(
    at java.awt.EventDispatchThread.pumpEvents(EventDispa
    at java.awt.EventDispatchThread.pumpEvents(EventDispa

    Can someone tell me what problem? i am newbie in java..

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Rep Power

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


    On line 490 of MaintainStaff, there is a variable for which you assume it is not null, but it is.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Replies: 1
    Last Post: 07-22-2011, 06:27 AM
  2. Replies: 1
    Last Post: 12-13-2010, 04:19 PM
  3. Replies: 6
    Last Post: 06-06-2010, 09:02 PM
  4. Replies: 3
    Last Post: 04-30-2010, 07:44 PM
  5. Replies: 5
    Last Post: 08-26-2009, 11:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts