bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/30337] New: NPE with own JComboBox if editor nis null


From: volker dot berlin at goebel-clan dot de
Subject: [Bug swing/30337] New: NPE with own JComboBox if editor nis null
Date: 31 Dec 2006 10:29:13 -0000

The follow lines produce the follow NPE with classpath. The same code work with
Sun Java VM. Off course this is not a real code but it show the problem very
simple with extended classes. The exception occur in the constructor and I have
no chance to init my class.

=================== 
JComboBox box = new JComboBox(){
    public ComboBoxEditor getEditor(){
        return null;
    }
};

====================
Exception in thread "main" java.lang.NullPointerException
        at javax.swing.JComboBox.configureEditor(JComboBox.java:1028)
        at
javax.swing.plaf.basic.BasicComboBoxUI.configureEditor(BasicComboBoxUI.java:549)
        at
javax.swing.plaf.metal.MetalComboBoxUI.configureEditor(MetalComboBoxUI.java:339)
        at
javax.swing.plaf.basic.BasicComboBoxUI.installUI(BasicComboBoxUI.java:239)
        at javax.swing.JComponent.setUI(JComponent.java:3252)
        at javax.swing.JComboBox.setUI(JComboBox.java:247)
        at javax.swing.JComboBox.updateUI(JComboBox.java:256)
        at javax.swing.JComboBox.<init>(JComboBox.java:178)
        at javax.swing.JComboBox.<init>(JComboBox.java:213)
        at Test$1.<init>(Test.java:23)
        at Test.<init>(Test.java:23)


-- 
           Summary: NPE with own JComboBox if editor nis null
           Product: classpath
           Version: 0.93
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: swing
        AssignedTo: roman at kennke dot org
        ReportedBy: volker dot berlin at goebel-clan dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30337





reply via email to

[Prev in Thread] Current Thread [Next in Thread]