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

New Folder Wizard throws NPE in some cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 12.4
    • 12.4
    • None

    Description

      It's maybe something broken in my user/cache dir, but if I try to create a folder outside of a project I get an NPE

      java.lang.NullPointerException: Cannot invoke "org.netbeans.api.project.Project.getLookup()" because "project" is null
       at org.netbeans.modules.projectapi.nb.NbProjectInformationProvider.getProjectInformation(NbProjectInformationProvider.java:56)
       at org.netbeans.api.project.ProjectUtils.getInformation(ProjectUtils.java:73)
       at org.netbeans.modules.project.ui.SimpleTargetChooserPanelGUI$GroupCellRenderer.getListCellRendererComponent(SimpleTargetChooserPanelGUI.java:554)
       at java.desktop/javax.swing.plaf.basic.BasicComboBoxUI.getDisplaySize(BasicComboBoxUI.java:1446)
       at com.formdev.flatlaf.ui.FlatComboBoxUI.getDisplaySize(FlatComboBoxUI.java:508)
       at java.desktop/javax.swing.plaf.basic.BasicComboBoxUI.getMinimumSize(BasicComboBoxUI.java:999)
       at com.formdev.flatlaf.ui.FlatComboBoxUI.getMinimumSize(FlatComboBoxUI.java:485)
       at java.desktop/javax.swing.plaf.basic.BasicComboBoxUI.getPreferredSize(BasicComboBoxUI.java:988)
       at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1680)
       at com.formdev.flatlaf.ui.FlatComboBoxUI$2.layoutContainer(FlatComboBoxUI.java:248)
       at java.desktop/java.awt.Container.layout(Container.java:1538)
      
      

      Attachments

        Issue Links

          Activity

            People

              lkishalmi Laszlo Kishalmi
              lkishalmi Laszlo Kishalmi
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 40m
                  40m