Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6220687

NullPointerException in JList (jdk 1.5)

XMLWordPrintable

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      There is thrown a NullPointerException if ac is null.
      javax/swing/JList.java:

      2707: AccessibleContext ac = getCurrentAccessibleContext();
      2708: AccessibleStateSet s;
      2709: if (ac != null) {
      2710: s = ac.getAccessibleStateSet();
      2711: } else {
      2712: s = new AccessibleStateSet();
      2713: }
      2714: s = ac.getAccessibleStateSet();
      2715: s.add(AccessibleState.SELECTABLE);


      REPRODUCIBILITY :
      This bug can be reproduced always.
      ###@###.### 2005-1-24 12:40:07 GMT

            lmonsantsunw Lynn Monsanto (Inactive)
            jssunw Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: