From 9a3077a33034c208129e8f5398d52a2eb28e0783 Mon Sep 17 00:00:00 2001 From: Vincenzo Ingenito Date: Mon, 18 Nov 2024 19:21:17 +0100 Subject: [PATCH] fix: Issue 1279 --- .../fse2/ms/iniclient/service/impl/IniInvocationSRV.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/it/finanze/sanita/fse2/ms/iniclient/service/impl/IniInvocationSRV.java b/src/main/java/it/finanze/sanita/fse2/ms/iniclient/service/impl/IniInvocationSRV.java index 7cb83939..e5add645 100644 --- a/src/main/java/it/finanze/sanita/fse2/ms/iniclient/service/impl/IniInvocationSRV.java +++ b/src/main/java/it/finanze/sanita/fse2/ms/iniclient/service/impl/IniInvocationSRV.java @@ -331,6 +331,11 @@ public GetReferenceResponseDTO getReference(final String oid, final JWTTokenDTO workflowInstanceId,startingDate); StringBuilder sb = buildReferenceResponse(response); + if(response.getTotalResultCount().intValue()==0) { + out.setErrorMessage("No record found"); + return out; + } + if(!StringUtility.isNullOrEmpty(sb.toString())){ out.setErrorMessage(sb.toString()); } else {