mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-18 23:19:33 +00:00
6888130: SwingSet2: Demo is not launching and throwing NPE
Reviewed-by: prr
This commit is contained in:
parent
2c036dc823
commit
17a997cfe3
@ -3527,7 +3527,9 @@ public class BasicTabbedPaneUI extends TabbedPaneUI implements SwingConstants {
|
||||
Integer index = (Integer) e.getNewValue();
|
||||
// remove the current index
|
||||
// to let updateHtmlViews() insert the correct one
|
||||
htmlViews.removeElementAt(index);
|
||||
if (htmlViews != null) {
|
||||
htmlViews.removeElementAt(index);
|
||||
}
|
||||
updateHtmlViews(index);
|
||||
} else if (name == "tabLayoutPolicy") {
|
||||
BasicTabbedPaneUI.this.uninstallUI(pane);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user