JDK-7012923 : BasicSplitPaneUI.java may trigger NPE while setting uidefaults
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2011-01-18
  • Updated: 2011-02-07
  • Resolved: 2011-02-07
Related Reports
Duplicate :  
Description
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.