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 242865 - NullPointerException: The fo parameter cannot be null
Summary: NullPointerException: The fo parameter cannot be null
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-13 14:16 UTC by markiewb
Modified: 2014-07-19 10:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 208360


Attachments
stacktrace (2.41 KB, text/plain)
2014-03-13 14:16 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2014-03-13 14:16:30 UTC
Build: NetBeans IDE 8.0 RC1 (Build 201402242200)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b69, Java(TM) SE Runtime Environment, 1.8.0-b127
OS: Windows 7

User Comments:
markiewb: I do not know




Stacktrace: 
java.lang.NullPointerException: The fo parameter cannot be null
   at org.openide.util.Parameters.notNull(Parameters.java:89)
   at org.openide.filesystems.FileUtil.isParentOf(FileUtil.java:1425)
   at org.openide.filesystems.FileUtil.getRelativePath(FileUtil.java:1195)
   at org.netbeans.modules.apisupport.project.ui.wizard.common.CreatedModifiedFiles$LayerModifications.getModifiedPaths(CreatedModifiedFiles.java:1138)
   at org.netbeans.modules.apisupport.project.ui.wizard.common.CreatedModifiedFiles.add(CreatedModifiedFiles.java:320)
   at org.netbeans.modules.apisupport.project.ui.wizard.layer.NewLayerIterator.createPanels(NewLayerIterator.java:63)
Comment 1 markiewb 2014-03-13 14:16:33 UTC
Created attachment 145994 [details]
stacktrace
Comment 2 Martin Kozeny 2014-03-28 08:00:25 UTC
You are missing manifest.mf in your module when adding layer.xml file and that's why error occurred. Closing as WONTFIX.
Comment 3 nvamelichev 2014-06-23 02:49:14 UTC
This should not fail with a runtime exception - it should show error message that MANIFEST.MF is not found, at least. 

And generating a MANIFEST.MF isn't that hard either: you only have to have it contain
Manifest-Version: 1.0
OpenIDE-Module-Layer: <path_to_layer.xml>
Comment 4 Martin Kozeny 2014-06-23 09:30:03 UTC
True there should be an error message, not failing with RTE. When creating new NB module, Manifest is created but here was probably manually deleted.
Comment 5 Martin Kozeny 2014-07-09 13:39:30 UTC
https://hg.netbeans.org/core-main/rev/4c04470286e6
Comment 6 Quality Engineering 2014-07-19 10:19:15 UTC
Integrated into 'main-silver', will be available in build *201407190718* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4c04470286e6
User: Martin Kozeny <mkozeny@netbeans.org>
Log: #242865: NullPointerException: The fo parameter cannot be null.