From f33c8ce81f9c0dc82e01fbf0f0fa5461952a7165 Mon Sep 17 00:00:00 2001 From: Torsten Simon Date: Fri, 6 Sep 2024 14:20:40 +0200 Subject: [PATCH] fix:empty lists are casted to empty string causing a list with one empty string entry ESPUB-76 --- .../org/edu_sharing/repository/server/MCAlfrescoAPIClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Backend/services/core/src/main/java/org/edu_sharing/repository/server/MCAlfrescoAPIClient.java b/Backend/services/core/src/main/java/org/edu_sharing/repository/server/MCAlfrescoAPIClient.java index 874aa3868..8924c7edf 100644 --- a/Backend/services/core/src/main/java/org/edu_sharing/repository/server/MCAlfrescoAPIClient.java +++ b/Backend/services/core/src/main/java/org/edu_sharing/repository/server/MCAlfrescoAPIClient.java @@ -602,7 +602,7 @@ protected String getValue(String type, String prop, Object _value, String metada return result; } else if (_value instanceof List && ((List) _value).size() == 0) { // cause empty list toString returns "[]" - return ""; + return null; } else if (_value instanceof String) { return (String) _value; } else if (_value instanceof Number) {