makiam opened a new issue, #9092:
URL: https://github.com/apache/netbeans/issues/9092
### Apache NetBeans version
Apache NetBeans 29 latest daily build
### What happened
NPE on adding new Netbeans Module Project to parent POM.
### Language / Project Type / NetBeans Component
Netbeans Module Wizard
### How to reproduce
Product Version: Apache NetBeans IDE DEV (Build
dev-8b022c7dcf733ad47ff3dc4fe19b8b9977c9d604)
Create new POM Project
Expand project Modules node and invoke Create New Module
Select NetBeans Module project
Proceed wizard with all default settings and click Finish
NPE is thrown:
java.lang.NullPointerException: Cannot invoke
"org.netbeans.modules.maven.model.pom.Properties.setProperty(String, String)"
because the return value of
"org.netbeans.modules.maven.model.pom.Project.getProperties()" is null
at
org.netbeans.modules.maven.apisupport.NBMNativeMWI$AdditionalOperations.performOperation(NBMNativeMWI.java:312)
at
org.netbeans.modules.maven.apisupport.NBMNativeMWI$AdditionalOperations.performOperation(NBMNativeMWI.java:130)
at
org.netbeans.modules.maven.model.Utilities.performPOMModelOperations(Utilities.java:326)
at
org.netbeans.modules.maven.spi.newproject.CreateProjectBuilder.create(CreateProjectBuilder.java:146)
at
org.netbeans.modules.maven.apisupport.NBMNativeMWI.instantiate(NBMNativeMWI.java:69)
at
org.netbeans.modules.maven.apisupport.NbmWizardIterator.instantiate(NbmWizardIterator.java:138)
at
org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1048)
at
org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:602)
at
org.netbeans.modules.project.ui.NewProjectWizard.handleInstantiate(NewProjectWizard.java:51)
at
org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:436)
at
org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:223)
at
org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:135)
at
org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1590)
at
org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1531)
[catch] at
org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2218)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403)
at
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2018)
No child project is created but only empty folder added
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Ubuntu 22.04 System: Linux version 6.8.0-87-generic running on amd64; UTF-8;
en_US
### JDK
Java: 17.0.10; OpenJDK 64-Bit Server VM 17.0.10+13-LTS
### Apache NetBeans packaging
Own source build
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists