Index: src/org/openstreetmap/josm/gui/util/WindowGeometry.java
===================================================================
--- src/org/openstreetmap/josm/gui/util/WindowGeometry.java	(revision 13962)
+++ src/org/openstreetmap/josm/gui/util/WindowGeometry.java	(working copy)
@@ -343,18 +343,23 @@
 
         // Ensure window does not hide taskbar
 
-        Rectangle maxbounds = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
+        try {
+            Rectangle maxbounds = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
 
-        if (!isBugInMaximumWindowBounds(maxbounds)) {
-            deltax = size.width - maxbounds.width;
-            if (deltax > 0) {
-                size.width -= deltax;
-            }
+            if (!isBugInMaximumWindowBounds(maxbounds)) {
+                deltax = size.width - maxbounds.width;
+                if (deltax > 0) {
+                    size.width -= deltax;
+                }
 
-            deltay = size.height - maxbounds.height;
-            if (deltay > 0) {
-                size.height -= deltay;
+                deltay = size.height - maxbounds.height;
+                if (deltay > 0) {
+                    size.height -= deltay;
+                }
             }
+        } catch (IllegalArgumentException e) {
+            // becaus of bug #16410
+            Logging.debug(e.toString());
         }
         window.setLocation(p);
         window.setSize(size);
