RED-5275: Fixed ArrayOutOfBounds if headline is empty in redactHeadline rule
This commit is contained in:
parent
c027924b19
commit
a510a8bb9f
@ -942,7 +942,7 @@ public class Section {
|
||||
@Argument(ArgumentType.STRING) String reason,
|
||||
@Argument(ArgumentType.LEGAL_BASIS) String legalBasis) {
|
||||
|
||||
if (searchText.contains(headline)) {
|
||||
if (!headline.isBlank() && searchText.contains(headline)) {
|
||||
|
||||
Set<Entity> found = findEntities(headline.trim(), type, false, true, ruleNumber, reason, legalBasis, Engine.RULE, false);
|
||||
EntitySearchUtils.addEntitiesWithHigherRank(entities, found, dictionary);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user