File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
extensions/indexes/lucene/src/main/java/org/exist/indexing/lucene Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 45
45
import org .exist .util .serializer .AttrList ;
46
46
import org .xml .sax .SAXException ;
47
47
48
+ import javax .annotation .Nullable ;
48
49
import javax .xml .stream .XMLStreamConstants ;
49
50
import javax .xml .stream .XMLStreamException ;
50
51
import java .io .IOException ;
@@ -174,8 +175,10 @@ private void scanMatches(final NodeProxy p) {
174
175
// Collect the text content of all descendants of p.
175
176
// Remember the start offsets of the text nodes for later use.
176
177
final NodePath path = getPath (p );
177
- final LuceneIndexConfig idxConf = config .getConfig (path ).next ();
178
-
178
+ @ Nullable final LuceneIndexConfig idxConf = config .getConfig (path ).next ();
179
+ if (idxConf == null ) {
180
+ return ; // there is no index config so there can not be any matches
181
+ }
179
182
final TextExtractor extractor = new DefaultTextExtractor ();
180
183
extractor .configure (config , idxConf );
181
184
You can’t perform that action at this time.
0 commit comments