From 68dd223a16d8eb17f220d2a1450bee5654f83fba Mon Sep 17 00:00:00 2001 From: Sascha Isele Date: Tue, 9 Jul 2024 09:41:21 +0200 Subject: [PATCH] feat(api, spi, storage): transformer fix Signed-off-by: Sascha Isele --- .../edc/jsonld/spi/transformer/AbstractJsonLdTransformer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spi/common/json-ld-spi/src/main/java/org/eclipse/edc/jsonld/spi/transformer/AbstractJsonLdTransformer.java b/spi/common/json-ld-spi/src/main/java/org/eclipse/edc/jsonld/spi/transformer/AbstractJsonLdTransformer.java index 2ca76745816..f1e669580b0 100644 --- a/spi/common/json-ld-spi/src/main/java/org/eclipse/edc/jsonld/spi/transformer/AbstractJsonLdTransformer.java +++ b/spi/common/json-ld-spi/src/main/java/org/eclipse/edc/jsonld/spi/transformer/AbstractJsonLdTransformer.java @@ -285,7 +285,7 @@ protected String transformString(JsonValue value, TransformerContext context) { /** * Transforms a JsonValue to a list of strings. If the value parameter is not of type JsonString, JsonObject or JsonArray, - * a problem is reported to the context. + * a problem is reported to the context and an empty list is returned. * * @param value the value to transform * @param context the transformer context @@ -334,7 +334,7 @@ protected List transformIdStringArray(JsonValue value, TransformerContex .expected(ARRAY) .report(); } - return null; + return result; } /**