Index: /trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java	(revision 14249)
+++ /trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java	(revision 14250)
@@ -761,7 +761,9 @@
             if (org.openstreetmap.josm.actions.search.SearchAction.getSearchHistory().isEmpty())
                 return;
-            JPopupMenu menu = new SearchPopupMenu();
-            Rectangle r = parent.getBounds();
-            menu.show(parent, r.x, r.y + r.height);
+            if (parent.isShowing()) {
+                JPopupMenu menu = new SearchPopupMenu();
+                Rectangle r = parent.getBounds();
+                menu.show(parent, r.x, r.y + r.height);
+            }
         }
 
@@ -841,7 +843,9 @@
         public static void launch(Component parent, Collection<Collection<? extends OsmPrimitive>> history) {
             if (history == null || history.isEmpty()) return;
-            JPopupMenu menu = new SelectionHistoryPopup(history);
-            Rectangle r = parent.getBounds();
-            menu.show(parent, r.x, r.y + r.height);
+            if (parent.isShowing()) {
+                JPopupMenu menu = new SelectionHistoryPopup(history);
+                Rectangle r = parent.getBounds();
+                menu.show(parent, r.x, r.y + r.height);
+            }
         }
 
