Skip to content

Commit 1e37f2b

Browse files
authored
SAK-47814 Search avoid matching an ECP with a null ref sakaiproject#10864
1 parent f0afe3a commit 1e37f2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

search/elasticsearch/util/src/java/org/sakaiproject/search/elasticsearch/BaseElasticSearchIndexBuilder.java

+2
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,8 @@ public String getPDocuments() {
13611361
*/
13621362
@Override
13631363
public EntityContentProducer newEntityContentProducer(String ref) {
1364+
if (ref == null) return null;
1365+
13641366
final Optional<EntityContentProducer> producer = matchEntityContentProducer(p -> p.matches(ref));
13651367
if ( producer.isPresent() ) {
13661368
getLog().debug("Matched content producer " + producer.get() + " for reference " + ref + " in index builder "

0 commit comments

Comments
 (0)