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 240989 - AssertionError: Null file object.
Summary: AssertionError: Null file object.
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-27 00:37 UTC by aikebah
Modified: 2014-01-30 03:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 206979


Attachments
stacktrace (7.07 KB, text/plain)
2014-01-27 00:37 UTC, aikebah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aikebah 2014-01-27 00:37:22 UTC
This issue was reported manually by aikebah.
It already has 1 duplicates 


Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 7

User Comments:
aikebah: Creating a new Maven POM project for which I cleared the (marked Optional) Package field in the New POM Project dialog




Stacktrace: 
java.lang.AssertionError: Null file object.
   at org.netbeans.modules.maven.model.Utilities.createModelSource(Utilities.java:186)
   at org.netbeans.modules.maven.model.Utilities.createModelSource(Utilities.java:181)
   at org.netbeans.modules.maven.spi.newproject.CreateProjectBuilder.create(CreateProjectBuilder.java:171)
   at org.netbeans.modules.maven.newproject.idenative.IDENativeMavenWizardIterator.instantiate(IDENativeMavenWizardIterator.java:109)
   at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1044)
   at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:605)
Comment 1 aikebah 2014-01-27 00:37:24 UTC
Created attachment 144387 [details]
stacktrace
Comment 2 Milos Kleint 2014-01-29 10:31:19 UTC
http://hg.netbeans.org/core-main/rev/4c86c7337a71
http://hg.netbeans.org/core-main/rev/e41735fedf96

for some reason parent project's pom file was not convertible to FileObject. In that case we skip the operation where child is added to parent's <modules> section.
Comment 3 Quality Engineering 2014-01-30 03:04:57 UTC
Integrated into 'main-silver', will be available in build *201401300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4c86c7337a71
User: Milos Kleint <mkleint@netbeans.org>
Log: #240989 more asserts to learn why the parent project's MavenProject.getFile() is a location non-convertable to FileObject.