Index: /trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java	(revision 10918)
+++ /trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java	(revision 10919)
@@ -1452,5 +1452,5 @@
                 LatLon coordinate = ((Node) osm).getCoor();
                 Collection<Bounds> allBounds = getBounds(osm);
-                return allBounds != null && allBounds.stream().anyMatch(bounds -> bounds.contains(coordinate));
+                return coordinate != null && allBounds != null && allBounds.stream().anyMatch(bounds -> bounds.contains(coordinate));
             } else if (osm instanceof Way) {
                 Collection<Node> nodes = ((Way) osm).getNodes();
Index: /trunk/src/org/openstreetmap/josm/data/osm/Node.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/osm/Node.java	(revision 10918)
+++ /trunk/src/org/openstreetmap/josm/data/osm/Node.java	(revision 10919)
@@ -73,4 +73,8 @@
     }
 
+    /**
+     * Returns lat/lon coordinates of this node, or {@code null} unless {@link #isLatLonKnown()}
+     * @return lat/lon coordinates of this node, or {@code null} unless {@link #isLatLonKnown()}
+     */
     @Override
     public LatLon getCoor() {
