Skip to content

Commit

Permalink
'#1487 Skip null value returned when some exception is thrown by the
Browse files Browse the repository at this point in the history
future query response.
  • Loading branch information
patrickdalla committed Sep 19, 2023
1 parent d155ba2 commit b2d9bd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iped-geo/src/main/java/iped/geo/nominatim/NominatimTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ protected void process(IItem evidence) throws Exception {
if (result != null) {
if (result.isDone()) {
String content = result.get();
processNominatimResult(evidence, content);
if (content != null) {
processNominatimResult(evidence, content);
}
queries.remove(evidence);
} else {
reEnqueueItem(evidence);
Expand Down

0 comments on commit b2d9bd6

Please sign in to comment.