You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2007/11/29 18:50:43 UTC

[jira] Closed: (HARMONY-5222) [classlib][swing] ComboBox.setEditor throws NPE if editor is null

     [ https://issues.apache.org/jira/browse/HARMONY-5222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko closed HARMONY-5222.
------------------------------------

    Resolution: Fixed

The patch has been applied.

> [classlib][swing] ComboBox.setEditor throws NPE if editor is null
> -----------------------------------------------------------------
>
>                 Key: HARMONY-5222
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5222
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Alexey Petrenko
>            Assignee: Alexey Petrenko
>            Priority: Minor
>
> Harmony throws the following NPE if the ComboBox.setEditor parameter is null:
> Uncaught exception in main:
> java.lang.NullPointerException
> 	at javax.swing.plaf.basic.BasicComboBoxUI.addEditor(BasicComboBoxUI.java:410)
> 	at javax.swing.plaf.basic.BasicComboBoxUI$PropertyChangeHandler.propertyChange(BasicComboBoxUI.java:231)
> 	at javax.swing.plaf.metal.MetalComboBoxUI$MetalPropertyChangeListener.propertyChange(MetalComboBoxUI.java:82)
> 	at java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:263)
> 	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:54)
> 	at java.awt.Component.firePropertyChangeImpl(Component.java:1668)
> 	at java.awt.Component.firePropertyChange(Component.java:1682)
> 	at javax.swing.JComboBox.setEditor(JComboBox.java:323)
> 	at ComboBoxEditorTest.main(ComboBoxEditorTest.java:6)
> RI does not throw exception in this case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.