fix empty rule condition (#3993)

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
pull/4002/head
Mark Herwege 2024-01-02 19:51:11 +01:00 committed by GitHub
parent 041e3b5127
commit dbc3b19a4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArraySet;
import java.util.function.Predicate;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@ -497,7 +498,7 @@ public class UIComponentSitemapProvider implements SitemapProvider, RegistryChan
}
}
List<String> conditionsList = List.of(conditions.split(" AND "));
return conditionsList.stream().map(String::trim).toList();
return conditionsList.stream().filter(Predicate.not(String::isBlank)).map(String::trim).toList();
}
@Override