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.

Bug 221464 - NullPointerException at org.netbeans.modules.web.jsf.JSFConfigUtilities.extendJsfFramework
Summary: NullPointerException at org.netbeans.modules.web.jsf.JSFConfigUtilities.exten...
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-05 09:17 UTC by Jiri Skrivanek
Modified: 2012-11-07 09:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 194543


Attachments
stacktrace (6.36 KB, text/plain)
2012-11-05 09:17 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-11-05 09:17:46 UTC
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)
Comment 1 Jiri Skrivanek 2012-11-05 09:17:48 UTC
Created attachment 127120 [details]
stacktrace
Comment 2 Martin Fousek 2012-11-05 13:33:18 UTC
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.
Comment 3 Martin Fousek 2012-11-05 13:59:19 UTC
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.
Comment 4 Quality Engineering 2012-11-07 03:39:12 UTC
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