The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Why java.lang.NullPointerException?

Posted by Blanca on November 29, 2000 at 5:04 AM

Hi everybody,

Please I need help, I don't understand this java error and I don't know what else to do.

I have to packages A and B

When I run package B alone, it works perfect, but when I call package B from package A, then I get the following error:

java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at javax.swing.ImageIcon.
at com.borland.dbswing.DBTextDataBinder$UndoAction.
at com.borland.dbswing.DBTextDataBinder.
at com.borland.dbswing.JdbTextField.commonInit
at com.borland.dbswing.JdbTextField.
at com.borland.dbswing.JdbTextField.
at guiapp.UmlAppFrame.jbInit
at guiapp.UmlAppFrame.
at umlcfg.UmlCFGFrame.applicationButton_actionPerformed
...
...
...


guiapp is package B
umlcfg is package A

I get the error in a line that has the following code:

rValue = new JdbTextField();

Thanks for any suggestions or help,
Blanca





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us