From cbb343bb176245864f41bdcec7ee0f6e28a9e2c6 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Tue, 18 Jan 2022 15:26:51 +0100 Subject: [PATCH] EDMIService: Allow empty return values for GetScalarValue --- .../Database/GetScalarValue/GetScalarValueMethod.vb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Service.EDMIService/Methods/Database/GetScalarValue/GetScalarValueMethod.vb b/Service.EDMIService/Methods/Database/GetScalarValue/GetScalarValueMethod.vb index ecf90fca..073d3d1b 100644 --- a/Service.EDMIService/Methods/Database/GetScalarValue/GetScalarValueMethod.vb +++ b/Service.EDMIService/Methods/Database/GetScalarValue/GetScalarValueMethod.vb @@ -40,9 +40,10 @@ Namespace Methods.Database.GetScalarValue End Select - If oResult Is Nothing Then - LogAndThrow($"SQL Command did not return any results: [{pData.SqlCommand}]!") - End If + ' Remove this in the future, empty return values for scalar should be allowed + 'If oResult Is Nothing Then + ' LogAndThrow($"SQL Command did not return any results: [{pData.SqlCommand}]!") + 'End If Return New GetScalarValueResponse(oResult) Catch ex As Exception