I’m getting the following NullPointerException:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.foo.JawsFileChooser.a(SourceFile:28)
at com.foo.JawsFileChooser$1.actionPerformed(SourceFile:91)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
[...snip...]
when users click a button in my app and follow a certain set of steps. But Line 28 in JawsFileChooser.java is the line which defines the class:
public class JawsFileChooser extends JPanel implements SwingConstants, DebugConstants {
. What could I take a look at to figure out why this is happening?
thanks in advance for any help.
You could take a look at
SourceFile:28, it is part ofcom.foo.JawsFileChooser.aand dereferencing a reference that isnullEDIT:
I have seen the first line of class reported in stacktrace in presence of anonymous inner classes. For example the following code
Results in
The synthesized method name is printed but the line number is similar to your case. I would look at
com.foo.JawsFileChooser$1.actionPerformed(SourceFile:91)