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 157020 - AssertionError: Null file object.
Summary: AssertionError: Null file object.
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Milos Kleint
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-19 02:23 UTC by johnsonlau
Modified: 2009-02-19 22:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 145318


Attachments
stacktrace (2.98 KB, text/plain)
2009-01-19 02:23 UTC, johnsonlau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johnsonlau 2009-01-19 02:23:23 UTC
Build: NetBeans IDE Dev (Build 200901141401)
VM: Java HotSpot(TM) Server VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows XP, 5.1, x86

User Comments:
johnsonlau: A project deleted by Windows Explorer, but still existed in NetBeans's project window.
When you right click Properties window on the menu, the exception threw out.



Stacktrace: 
java.lang.AssertionError: Null file object.
        at org.netbeans.modules.maven.model.Utilities.createModelSource(Utilities.java:193)
        at org.netbeans.modules.maven.customizer.CustomizerProviderImpl.init(CustomizerProviderImpl.java:155)
        at org.netbeans.modules.maven.customizer.CustomizerProviderImpl.showCustomizer(CustomizerProviderImpl.java:128)
        at org.netbeans.modules.maven.customizer.CustomizerProviderImpl.showCustomizer(CustomizerProviderImpl.java:122)
        at org.netbeans.modules.maven.customizer.CustomizerProviderImpl.showCustomizer(CustomizerProviderImpl.java:117)
        at org.netbeans.modules.project.ui.actions.CustomizeProject.actionPerformed(CustomizeProject.java:149)
Comment 1 johnsonlau 2009-01-19 02:23:28 UTC
Created attachment 75958 [details]
stacktrace
Comment 2 Milos Kleint 2009-02-03 12:13:54 UTC
the ide would eventually remove the deleted project from the project view. It just takes time to refresh the filesystem
data structures after switching back to the IDE. ->P4 as the preferred and supported way of deleting a project is from
the IDE.
Comment 3 Milos Kleint 2009-02-12 14:25:18 UTC
http://hg.netbeans.org/main/rev/a43605f9f123
Comment 4 Quality Engineering 2009-02-18 10:15:11 UTC
Integrated into 'main-golden', will be available in build *200902180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a43605f9f123
User: Milos Kleint <mkleint@netbeans.org>
Log: #157020 do a pro-active check with regard to presence of pom.xml, will only fail if someone removes the pom file or removes the complete project outside of the IDE.