mbien commented on issue #9728:
URL: https://github.com/apache/netbeans/issues/9728#issuecomment-6246659556

   ```
   java.lang.NullPointerException: 
   Cannot invoke "org.apache.lucene.index.Terms.iterator()" because the return 
value of
    "org.apache.lucene.index.LeafReader.terms(String)" is null
   ```
   since the input value is a constant the call must have been 
`.terms("references")` and it got `null` back.
   
   null is valid as return value I think. This could happen when `DocumentUtil 
createDocument()` is called with an empty references list. I am no lucene 
expert but that sounds plausible to me at least.
   
   I suppose we could add a null check right where it happens and skip the item.
   
   Will take a look at it and see if we can target the current NB 32 release. 
Thanks for reporting!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to