This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE 7.3 Beta 2 (Build 201211042000) VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-ea-b10 OS: Windows 7 User Comments: jskrivanek: To reproduce: - create java project - open new file wizard - choose "Web|JSF Page" - click Next. Probably this template shouldn't be enabled for this project type. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.web.jsf.JSFConfigUtilities.extendJsfFramework(JSFConfigUtilities.java:282) at org.netbeans.modules.web.jsf.wizards.JSFPageIterator.instantiate(JSFPageIterator.java:84) at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:605) at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:439) at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248) at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:160)
Created attachment 127120 [details] stacktrace
Actually such wizards were enabled for cases like in the issue #213637. The fix will be easy, it wouldn't try to extend project by framework when it's not a Web Project. Thanks for such a good catch.
Fixed in web-main #f52e9cefaa29. In any case there was added by somebody (probably David) dialog about missing WEB-INF directory, but I would wait for user report if it blocks users in coding of JSF composite libraries.
Integrated into 'main-golden', will be available in build *201211070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f52e9cefaa29 User: Martin Fousek <marfous@netbeans.org> Log: #221464 - NullPointerException at org.netbeans.modules.web.jsf.JSFConfigUtilities.extendJsfFramework