Laszlo Kishalmi created NETBEANS-5640:
-----------------------------------------

             Summary: New Folder Wizard throws NPE in some cases
                 Key: NETBEANS-5640
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5640
             Project: NetBeans
          Issue Type: Bug
    Affects Versions: 12.4
            Reporter: Laszlo Kishalmi
            Assignee: Laszlo Kishalmi


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
{code:java}
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)

{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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