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 183280 - NullPointerException: The folder parameter cannot be null
Summary: NullPointerException: The folder parameter cannot be null
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-31 14:12 UTC by Jindrich Sedek
Modified: 2010-04-29 08:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 167400


Attachments
stacktrace (4.62 KB, text/plain)
2010-03-31 14:12 UTC, Jindrich Sedek
Details
test project (753.69 KB, application/gzip)
2010-03-31 14:14 UTC, Jindrich Sedek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2010-03-31 14:12:08 UTC
Build: NetBeans IDE Dev (Build 201003310201)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b06
OS: Linux

User Comments:
jsedek: Open attached project, open newhtml2.html and invoke refactor/Extract inlined style -> NPE is thrown




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:1541)
   at org.openide.filesystems.FileUtil.getRelativePath(FileUtil.java:1315)
   at org.netbeans.modules.html.editor.refactoring.ExtractInlinedStylePanel$ExternalStyleSheetItem.<init>(ExtractInlinedStylePanel.java:486)
   at org.netbeans.modules.html.editor.refactoring.ExtractInlinedStylePanel.createExternalStylesheetsModel(ExtractInlinedStylePanel.java:392)
   at org.netbeans.modules.html.editor.refactoring.ExtractInlinedStylePanel.initComponents(ExtractInlinedStylePanel.java:272)
Comment 1 Jindrich Sedek 2010-03-31 14:12:12 UTC
Created attachment 96451 [details]
stacktrace
Comment 2 Jindrich Sedek 2010-03-31 14:14:02 UTC
Created attachment 96452 [details]
test project
Comment 3 Marek Fukala 2010-04-08 14:28:40 UTC
Caused by the web maven project not providing the ProjectWebRootProvider in its lookup.
Comment 4 Marek Fukala 2010-04-12 12:36:32 UTC
fixed in web-main#0e7f2128fb6f
Comment 5 Quality Engineering 2010-04-13 17:39:15 UTC
Integrated into 'main-golden', will be available in build *201004131450* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0e7f2128fb6f
User: Marek Fukala <mfukala@netbeans.org>
Log: #183280 -  NullPointerException: The folder parameter cannot be null
Comment 6 Jindrich Sedek 2010-04-29 08:39:38 UTC
verified.
NetBeans IDE Dev (Build 201004280200)