From b2d9bd60d685303126347b20d22c8de02552eba0 Mon Sep 17 00:00:00 2001 From: "patrick.pdb" Date: Tue, 19 Sep 2023 14:26:02 -0400 Subject: [PATCH] '#1487 Skip null value returned when some exception is thrown by the future query response. --- iped-geo/src/main/java/iped/geo/nominatim/NominatimTask.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iped-geo/src/main/java/iped/geo/nominatim/NominatimTask.java b/iped-geo/src/main/java/iped/geo/nominatim/NominatimTask.java index f81cdc5e6a..a14b15fe63 100644 --- a/iped-geo/src/main/java/iped/geo/nominatim/NominatimTask.java +++ b/iped-geo/src/main/java/iped/geo/nominatim/NominatimTask.java @@ -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);