jira-importer commented on issue #483:
URL: https://github.com/apache/maven-indexer/issues/483#issuecomment-2965144280

   **[Tamas 
Cservenak](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cstamas)**
 commented
   
   As I see from NetBeans issue, this NPE happened _within_ 
DefaultIndexingContext constructor, so I would rule out that same context's -- 
that is just being constructed -- close() method was called. This code is 
called from constructor, and having indexDirectory `null` means something 
really bad.
   
   `close()` method contains null check to make possible calling it multiple 
times without any problem (closing already closed context does nothing, is 
harmless).
   
   According stack trace and Affects version, the DefaultIndexingContext with 
File parameter is called (this rules out calling another constructor with 
`null` Directory as parameter). But here, that would mean `FSDirectory.open()` 
returns `null`, which again seems unlikely after inspecting the code.
   
   ...unless `warmUp( NexusIndexSearcher searcher )` failed with IOException. 
It seems we "eat" some information here...
   


-- 
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]

Reply via email to