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 178914 - NullPointerException: The folder parameter cannot be null
Summary: NullPointerException: The folder parameter cannot be null
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Alexey Butenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-21 00:21 UTC by rjdkolb
Modified: 2010-05-28 08:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 163798


Attachments
stacktrace (4.83 KB, text/plain)
2009-12-21 00:22 UTC, rjdkolb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rjdkolb 2009-12-21 00:21:58 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.29.6, amd64

User Comments:
rjdkolb: This project was a EJB maven project.
I changed it to a Maven WAR project and then tried to create a JSF 2 page



Stacktrace: 
java.lang.NullPointerException: The folder parameter cannot be null
   at org.openide.util.Parameters.notNull(Parameters.java:86)
   at org.openide.filesystems.FileUtil.isParentOf(FileUtil.java:1513)
   at org.openide.filesystems.FileUtil.getRelativePath(FileUtil.java:1287)
   at org.netbeans.modules.web.wizards.targetpanel.providers.WebTargetPanelProvider.getRelativeSourcesFolder(WebTargetPanelProvider.java:88)
   at org.netbeans.modules.web.wizards.targetpanel.providers.JSFTargetPanelProvider.getRelativeSourcesFolder(JSFTargetPanelProvider.java:65)
   at org.netbeans.modules.target.iterator.api.TargetChooserPanelGUI.getRelativeSourcesFolder(TargetChooserPanelGUI.java:191)
Comment 1 rjdkolb 2009-12-21 00:22:01 UTC
Created attachment 92807 [details]
stacktrace
Comment 2 Antonin Nebuzelsky 2010-01-14 06:58:33 UTC
Changing the default owner to issues@javaee.
Comment 3 rjdkolb 2010-05-27 09:26:54 UTC
Steps to recreate in NB 6.8:

1) Create a new 'Maven EJB Module'
2) Edit pom.xml, change packaging to war
3) Right click on project, New JSF Page...
4) Exception as in the issue
Comment 4 Alexey Butenko 2010-05-27 10:06:54 UTC
http://hg.netbeans.org/web-main/rev/9b67da8a3439
Comment 5 rjdkolb 2010-05-27 10:37:52 UTC
thanks
Comment 6 Quality Engineering 2010-05-28 08:02:04 UTC
Integrated into 'main-golden', will be available in build *201005280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9b67da8a3439
User: Alexey Butenko <alexeybutenko@netbeans.org>
Log: #178914:  NullPointerException: The folder parameter cannot be null