[ 
https://issues.apache.org/jira/browse/NETBEANS-5783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated NETBEANS-5783:
-------------------------------------
    Labels: pull-request-available  (was: )

> NPE opening Gradle project
> --------------------------
>
>                 Key: NETBEANS-5783
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5783
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: projects - Gradle
>    Affects Versions: 12.4
>         Environment: NetBeans 12.4
> OpenJDK 16
> macOS 11.4
>            Reporter: Scott Palmer
>            Assignee: Laszlo Kishalmi
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to