IBM Support

PQ52728: IF A NULL OBJECT IS ADDED TO A JCOMBOBOX RESULTS IN A JAVA.LANG.NULLPOINTEREXCEPTION.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If a null object is added to a JComboBox it resultin the
    the following exception:
    at javax.swing.JComboBox.getSelectedIndex(JComboBox.java:480)
    at javax.swing.plaf.basic.BasicComboPopup.syncListSelection
    WithComboBoxSelection(BasicComboPopup.java:853)
    at javax.swing.plaf.basic.BasicComboPopup$ListDataHandler.interv
    alAdded(BasicComboPopup.java:609)
    at javax.swing.AbstractListModel.fireIntervalAdded(AbstractListM
    at javax.swing.DefaultComboBoxModel.addElement(DefaultComboBox
    

Local fix

  • The solution for preventing this NullPointerException is by addi
    ng a check for object returned by getElementAt() to be null in t
    the function getSelectedIndex (JCombobox.java).
    

Problem summary

  • As above
    

Problem conclusion

  • Install PTF10 or any version of java with a build
    date of 130-20011005 or later to obtain the fix
    

Temporary fix

Comments

APAR Information

  • APAR number

    PQ52728

  • Reported component name

    JAVA2(1.3) COMM

  • Reported component ID

    5648C9800

  • Reported release

    130

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2001-09-26

  • Closed date

    2002-03-20

  • Last modified date

    2002-03-20

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA2(1.3) COMM

  • Fixed component ID

    5648C9800

Applicable component levels

  • R130 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.3.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022