From 81452f370e784c3a07053d15ee1aef50ef7743de Mon Sep 17 00:00:00 2001 From: DavidCroftDKFZ <46788708+DavidCroftDKFZ@users.noreply.github.com> Date: Wed, 6 Nov 2024 13:53:05 +0100 Subject: [PATCH] Version jump --- pom.xml | 2 +- .../samply/directory_sync_service/directory/DirectoryCalls.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8b2364d..aa7afaf 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ de.samply directory_sync_service - 1.4.8 + 1.5.0 directory_sync_service Directory sync https://github.com/samply/directory_sync_service diff --git a/src/main/java/de/samply/directory_sync_service/directory/DirectoryCalls.java b/src/main/java/de/samply/directory_sync_service/directory/DirectoryCalls.java index 391ef91..fd22aef 100644 --- a/src/main/java/de/samply/directory_sync_service/directory/DirectoryCalls.java +++ b/src/main/java/de/samply/directory_sync_service/directory/DirectoryCalls.java @@ -91,6 +91,8 @@ protected String executeRequest(HttpUriRequest request) { CloseableHttpResponse response = httpClient.execute(request); if (response.getStatusLine().getStatusCode() < 300) { HttpEntity httpEntity = response.getEntity(); + if (httpEntity == null) + logger.warn("executeRequest: entity is null" ); result = EntityUtils.toString(httpEntity); } else if (response.getStatusLine().getStatusCode() == 404) { logger.warn("executeRequest: entity get HTTP error (not found): URI: " + request.getURI().toString() + ", error: " + response.getStatusLine().getStatusCode());