This commit is contained in:
Developer01
2026-12-03 17:33:17 +01:00

View File

@@ -131,6 +131,7 @@ namespace ZUGFeRDRESTService.Controllers
_ValidationErrors = new List<String>() {
REFERENCES_Rejection_30001,
REFERENCES_Rejection_30002_1,
REFERENCES_Rejection_30002,
REFERENCES_Rejection_30003_1,
REFERENCES_Rejection_30003_2,
@@ -141,8 +142,8 @@ namespace ZUGFeRDRESTService.Controllers
REFERENCES_Rejection_30005_1,
REFERENCES_Rejection_30005_2,
REFERENCES_Rejection_30006,
REFERENCES_Rejection_30007,
REFERENCES_Rejection_30007_1,
REFERENCES_Rejection_30007,
REFERENCES_Rejection_30008,
REFERENCES_Rejection_30009,
REFERENCES_Rejection_30010,
@@ -665,7 +666,13 @@ namespace ZUGFeRDRESTService.Controllers
if (_database.MSSQL.ExecuteNonQuery(oCommand))
{
string oReturnValue = (string)oCommand.Parameters["@MSG_OUTPUT"].Value;
string oReturnValue = string.Empty;
if (oCommand.Parameters["@MSG_OUTPUT"] != null && oCommand.Parameters["@MSG_OUTPUT"].Value != null)
{
object val = oCommand.Parameters["@MSG_OUTPUT"].Value;
oReturnValue = (val == null || val is DBNull) ? string.Empty : (string)val;
}
_logger.Debug("Validation Result message from DB: " + oReturnValue);