|
@@ -211,7 +211,9 @@ public final class ButtonBar implements FrameManager, ActionListener,
|
211
|
211
|
for (FrameContainer<?> frame : windowCollection) {
|
212
|
212
|
window = windowFactory.getSwingWindow(frame);
|
213
|
213
|
parentWindow = windowFactory.getSwingWindow(frame.getParent());
|
214
|
|
- windowAdded(parentWindow, window);
|
|
214
|
+ if (window != null) {
|
|
215
|
+ windowAdded(parentWindow, window);
|
|
216
|
+ }
|
215
|
217
|
|
216
|
218
|
if (!frame.getChildren().isEmpty()) {
|
217
|
219
|
final ArrayList<FrameContainer<?>> childList = new ArrayList
|