sdedic opened a new pull request, #4383:
URL: https://github.com/apache/netbeans/pull/4383

   The following exception appears in the log when one tries to `Attach 
Sources` and uses `Download`:
   
   ```
   java.lang.NullPointerExceptionjava.lang.NullPointerException 
   at 
org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.constructQuery(NexusRepositoryIndexerImpl.java:1154)
   at 
org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.findBySHA1(NexusRepositoryIndexerImpl.java:1279)
   at 
org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl.findBySHA1(NexusRepositoryIndexerImpl.java:1272)
   at 
org.netbeans.modules.maven.indexer.api.RepositoryQueries.lambda$findBySHA1$6(RepositoryQueries.java:357)
   at 
org.netbeans.modules.maven.indexer.api.RepositoryQueries.getQueryResult(RepositoryQueries.java:217)
   at 
org.netbeans.modules.maven.indexer.api.RepositoryQueries.findBySHA1(RepositoryQueries.java:354)
   at 
org.netbeans.modules.maven.indexer.api.RepositoryQueries.findBySHA1Result(RepositoryQueries.java:346)
   at 
org.netbeans.modules.maven.queries.MavenSourceJavadocAttacher.attach(MavenSourceJavadocAttacher.java:87)
   [catch] 
   at 
org.netbeans.modules.maven.queries.MavenSourceJavadocAttacher.getSources(MavenSourceJavadocAttacher.java:204)
   at 
org.netbeans.modules.java.j2seplatform.queries.SourceJavadocAttacherUtil$Downloader.run(SourceJavadocAttacherUtil.java:140)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
   at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
   at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
   at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
   ```
   
   The reason si that in ec298fb the `constructQuery` was moved outside of the 
`iterate()` invocation which lazy-initializes the whole class (instantiates 
maven services).
   


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