Index: /trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java	(revision 5035)
+++ /trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java	(revision 5036)
@@ -765,4 +765,5 @@
             int relations = 0;
             for (OsmPrimitive o : sel) {
+                if (! o.isSelectable()) continue; // skip unselectable primitives
                 if (o instanceof Way) {
                     ways++;
@@ -786,4 +787,8 @@
                 .append(trn("{0} relation", "{0} relations", relations, relations));
             }
+            if(ways + nodes + relations == 0) {
+                text.append(tr("Unselectable now"));
+                this.sel=new ArrayList<OsmPrimitive>(); // empty selection
+            }            
             if(ways + nodes + relations == 1)
             {
