Index: /trunk/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java	(revision 2536)
+++ /trunk/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java	(revision 2537)
@@ -658,10 +658,10 @@
                     // we subtract 100 if not found and add 1 if found
                     found -= 100;
-                    if(!valueCount.containsKey(key)) {
+                    if(key == null || !valueCount.containsKey(key)) {
                         continue;
                     }
 
                     Map<String, Integer> v = valueCount.get(key);
-                    if(v.size() == 1 && v.containsKey(val) && v.get(val) == total) {
+                    if(v.size() == 1 && val != null && v.containsKey(val) && v.get(val) == total) {
                         found += 101;
                     }
