6888130: SwingSet2: Demo is not launching and throwing NPE

Reviewed-by: prr
This commit is contained in:
Lana Steuck 2010-06-07 15:35:36 -07:00
parent 2c036dc823
commit 17a997cfe3

View File

@ -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);