Skip to content

Commit

Permalink
fixing exception caused by sort order not being specified
Browse files Browse the repository at this point in the history
  • Loading branch information
tdiepenbrock committed Mar 16, 2021
1 parent 63e9f94 commit dd3594f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@ public class MarkLogicFeatureReader implements FeatureReader<SimpleFeatureType,

MarkLogicFeatureReader(ContentState contentState, Query query, String serviceName, int layerId, String idField, String geometryColumn) throws IOException {
this.state = contentState;
if (query != null) {
LOGGER.log(Level.INFO, () -> "FeatureReader Query:\n" + query.toString());
LOGGER.log(Level.INFO, () -> "FeatureReader Query:\n" + query.getSortBy()[0].toString());
if (query.getSortBy() != null && query.getSortBy().length > 0) {
LOGGER.log(Level.INFO, () -> "FeatureReader Query:\n" + query.getSortBy()[0].toString());
}
}

this.serviceName = serviceName;
this.layerId = layerId;
Expand Down

0 comments on commit dd3594f

Please sign in to comment.