Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5783

NPE opening Gradle project

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 12.4
    • 12.6
    • projects - Gradle
    • 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.

      Attachments

        Activity

          People

            lkishalmi Laszlo Kishalmi
            swpalmer Scott Palmer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m