diff --git a/source/net/yacy/kelondro/data/meta/URIMetadataNode.java b/source/net/yacy/kelondro/data/meta/URIMetadataNode.java index 13d8c77d1..e362f6139 100644 --- a/source/net/yacy/kelondro/data/meta/URIMetadataNode.java +++ b/source/net/yacy/kelondro/data/meta/URIMetadataNode.java @@ -137,7 +137,7 @@ public class URIMetadataNode { } public double lat() { - if (this.lat == Double.NaN) { + if (Double.isNaN(this.lat)) { this.lon = 0.0d; this.lat = 0.0d; String latlon = (String) this.doc.getFieldValue(CollectionSchema.coordinate_p.getSolrFieldName()); @@ -153,7 +153,7 @@ public class URIMetadataNode { } public double lon() { - if (this.lon == Double.NaN) lat(); + if (Double.isNaN(this.lon)) lat(); return this.lon; }