From d5bb7d8a0a5fd88a2cc38a2a71e67a6cb1dad59d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kilian=20Sch=C3=BCttler?= Date: Mon, 3 Jul 2023 21:41:34 +0200 Subject: [PATCH] RED-6929: Fix Acceptance Tests/Rules --- .../v1/server/layoutparsing/document/graph/nodes/Image.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/layoutparsing/document/graph/nodes/Image.java b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/layoutparsing/document/graph/nodes/Image.java index 505c1a15..d9fad9e0 100644 --- a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/layoutparsing/document/graph/nodes/Image.java +++ b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/layoutparsing/document/graph/nodes/Image.java @@ -118,6 +118,9 @@ public class Image implements GenericSemanticNode { public MatchedRule getMatchedRule() { + if (matchedRuleList.isEmpty()) { + return MatchedRule.empty(); + } return matchedRuleList.peek(); }