package jalview.gui;
import java.awt.BorderLayout;
+import java.awt.Component;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/*
* lay out progress bar container hierarchy
*/
- SwingUtilities.getRoot(statusPanel).validate();
+ Component root = SwingUtilities.getRoot(statusPanel);
+ if (root != null)
+ {
+ root.validate();
+ }
}
/**