bai0000 opened a new issue, #4208:
URL: https://github.com/apache/netbeans/issues/4208

   ### Apache NetBeans version
   
   Apache NetBeans 13
   
   ### What happened
   
   I created a web application project, the first time working with it was 
fine, then I close netbeans and tried to load it up again but this time, the 
project tree is not showing up at all, and I got an error/exception:
   
   java.lang.NullPointerException: Cannot invoke 
"java.nio.file.Path.startsWith(java.nio.file.Path)" because "path" is null
        at 
org.netbeans.modules.gradle.GradleModuleFileCache21$CachedArtifactVersion.<init>(GradleModuleFileCache21.java:143)
        at 
org.netbeans.modules.gradle.GradleModuleFileCache21.resolveCachedArtifactVersion(GradleModuleFileCache21.java:225)
        at 
org.netbeans.modules.gradle.api.GradleProjects.getSources(GradleProjects.java:50)
        at 
org.netbeans.modules.gradle.java.queries.GradleSourceForRepository.findSourceRoots2(GradleSourceForRepository.java:61)
        at 
org.netbeans.api.java.queries.SourceForBinaryQuery.findSourceRoots2(SourceForBinaryQuery.java:101)
        at 
org.netbeans.modules.parsing.impl.indexing.PathRegistry.createResources(PathRegistry.java:728)
        at 
org.netbeans.modules.parsing.impl.indexing.PathRegistry.getSources(PathRegistry.java:275)
        at 
org.netbeans.modules.parsing.impl.indexing.errors.Utilities.findIndexedRootsUnderDirectory(Utilities.java:87)
        at 
org.netbeans.modules.parsing.ui.indexing.errors.ErrorAnnotator$1.run(ErrorAnnotator.java:295)
        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)
   [catch] at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
   
![image](https://user-images.githubusercontent.com/107113095/172596391-8f767fa6-d320-4dc8-8d16-e24f7fa875e6.png)
   
![image](https://user-images.githubusercontent.com/107113095/172596472-903e530b-4bdd-45d9-8b32-71c0c2b221ab.png)
   
   
   
   
   ### How to reproduce
   
   Create a project, close it, open it up again and the problems is there. Most 
commonly the project trees should pop out automatically.
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 13
   
   ### Operating System
   
   Microsoft Windows 11 Home Single Language Ver. 10.0.220000
   
   ### JDK
   
   JDK 18
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


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