javax.swing.JPanel panel = new JPanel();
panel.add( createSubPanel() );
 
The lightbulb came on, and it suggested a method named "add". Accepting this, caused the following NPE.
 
Tried again a moment later by editing the unknown reference to be createSubPanel2(). The lightbulb came on again, suggested a properly named method, and created it as expected.
 
 
[19669053]  ERROR -       com.intellij.command.a.b -
java.lang.NullPointerException
        at com.intellij.codeInsight.intention.o.a(Unknown Source)
        at com.intellij.codeInsight.intention.o.a(Unknown Source)
        at com.intellij.codeInsight.intention.o.a(Unknown Source)
        at com.intellij.codeInsight.intention.m.b(Unknown Source)
        at com.intellij.codeInsight.daemon.impl.bd.run(Unknown Source)
        at com.intellij.psi.impl.o.run(Unknown Source)
        at com.intellij.vfs.VirtualFileManager.b(Unknown Source)
        at com.intellij.psi.impl.v.c(Unknown Source)
        at com.intellij.codeInsight.daemon.impl.bc.run(Unknown Source)
        at com.intellij.command.a.b.a(Unknown Source)
        at com.intellij.codeInsight.daemon.impl.bk.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

Brian Majewski
Chrome Systems Corporation

Reply via email to