Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
12.4
-
NetBeans 12.4
OpenJDK 16
macOS 11.4
Description
I have an existing Gradle project that builds fine from the command line, but causes a NPE related to the project name when I try to load it into NetBeans:
java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "org.netbeans.api.project.ProjectInformation.getDisplayName()" is null
at org.netbeans.modules.project.ui.actions.SetMainProject.checkProjectNames(SetMainProject.java:277)
at org.netbeans.modules.project.ui.actions.SetMainProject.access$200(SetMainProject.java:66)
at org.netbeans.modules.project.ui.actions.SetMainProject$5.run(SetMainProject.java:303)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
There are spaces in the path to the project but not the project folder itself.