We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 046eb97 commit 36da149Copy full SHA for 36da149
openbas-api/src/main/java/io/openbas/rest/inject/service/OutputStructuredUtils.java
@@ -156,6 +156,10 @@ public Optional<JsonNode> buildStructuredJsonNode(
156
if (type.fields == null || type.technicalType != ContractOutputTechnicalType.Object) {
157
String extracted = extractValues(element.getRegexGroups(), matcher);
158
159
+ if (extracted == null) {
160
+ return Optional.empty();
161
+ }
162
+
163
return type.technicalType == ContractOutputTechnicalType.Number
164
? Optional.of(toNumericValue(extracted))
165
: Optional.of(mapper.valueToTree(extracted));
0 commit comments