Index: /trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java	(revision 6830)
+++ /trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java	(revision 6831)
@@ -538,10 +538,12 @@
         public boolean match(OsmPrimitive osm) {
             int compareResult;
+            String currentValue = osm.get(key);
+            if (currentValue == null) return false;
             try {
                 compareResult = Double.compare(
-                        Double.parseDouble(osm.get(key)),
+                        Double.parseDouble(currentValue),
                         Double.parseDouble(referenceValue)
                 );
-            } catch (Exception ignore) {
+            } catch (NumberFormatException ignore) {
                 compareResult = osm.get(key).compareTo(referenceValue);
             }
