You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@jena.apache.org by GitBox <gi...@apache.org> on 2021/12/02 09:34:34 UTC

[GitHub] [jena] rvesse commented on a change in pull request #1121: JENA-2202: Skip if longitude not available

rvesse commented on a change in pull request #1121:
URL: https://github.com/apache/jena/pull/1121#discussion_r760911532



##########
File path: jena-geosparql/src/main/java/org/apache/jena/geosparql/spatial/SpatialIndex.java
##########
@@ -457,7 +457,11 @@ public static final Dataset wrapModel(Model model) throws SpatialIndexException
             Resource feature = resIt.nextResource();
 
             Literal lat = feature.getRequiredProperty(SpatialExtension.GEO_LAT_PROP).getLiteral();
-            Literal lon = feature.getRequiredProperty(SpatialExtension.GEO_LON_PROP).getLiteral();
+            Literal lon = feature.getProperty(SpatialExtension.GEO_LON_PROP).getLiteral();

Review comment:
       I notice there's no `null` check for `lat` either




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org