### Eclipse Workspace Patch 1.0 #P JMapViewer Index: src/org/openstreetmap/gui/jmapviewer/AttributionSupport.java =================================================================== --- src/org/openstreetmap/gui/jmapviewer/AttributionSupport.java (revision 36494) +++ src/org/openstreetmap/gui/jmapviewer/AttributionSupport.java (working copy) @@ -123,14 +123,11 @@ } public boolean handleAttributionCursor(Point p) { - if (attrTextBounds != null && attrTextBounds.contains(p)) { - return true; - } else if (attrImageBounds != null && attrImageBounds.contains(p)) { - return true; - } else if (attrToUBounds != null && attrToUBounds.contains(p)) { - return true; - } - return false; + if (p == null) return false; + + return (attrTextBounds != null && attrTextBounds.contains(p)) + || (attrImageBounds != null && attrImageBounds.contains(p)) + || (attrToUBounds != null && attrToUBounds.contains(p)); } public boolean handleAttribution(Point p, boolean click) {