Browse Source

Ignore windows that SwingUI doesnt know about when the client is starting up

Fixes issue 4203

Change-Id: I9bd2789ab3014af1de13f9d1e3e70f345da6cb33
Reviewed-on: http://gerrit.dmdirc.com/1296
Reviewed-by: Gregory Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
tags/0.6.4
Simon Mott 14 years ago
parent
commit
e827227310

+ 3
- 1
src/com/dmdirc/addons/ui_swing/framemanager/buttonbar/ButtonBar.java View File

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

Loading…
Cancel
Save