-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
7
-
None
-
generic
-
generic
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.
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.
- duplicates
-
JDK-6979537 closed/javax/swing/JSplitPane/UnitTest/UnitTest.java fails
- Closed