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

BasicSplitPaneUI.java may trigger NPE while setting uidefaults

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7
    • client-libs
    • None

      NPE may potentially occur in src/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java:

              Integer dividerSize = (Integer)UIManager.get("SplitPane.dividerSize");
      check for null >>
              if (divider == null) dividerSize = 10;
              LookAndFeel.installProperty(splitPane, "dividerSize", dividerSize);
      dereference without null-check>>
              divider.setDividerSize(splitPane.getDividerSize());
              dividerSize = divider.getDividerSize();

      I don't have a test representing that defect but this code was introduced with Nimbus integration so the test might ought to use the Nimbus laf.

            alexp Alexander Potochkin (Inactive)
            dav Andrei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: