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 157054 - FileStateInvalidException if user deletes file
Summary: FileStateInvalidException if user deletes file
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-19 12:20 UTC by soldatov
Modified: 2009-02-19 20:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2009-01-19 12:20:06 UTC
Scenario:
- Create project
- Create 'Main C File' in project
- Create 'Main C++ File' in project
- Delete c++ file
==> exception
org.openide.filesystems.FileStateInvalidException: /export/NB/Application_1/newmain.cpp
	at org.openide.loaders.DataObject.find(DataObject.java:485)
Caused: org.openide.loaders.DataObjectNotFoundException: /export/NB/Application_1/newmain.cpp
	at org.openide.loaders.DataObject.find(DataObject.java:505)
	at org.netbeans.modules.cnd.modelutil.CsmUtilities.getDocument(CsmUtilities.java:442)
	at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory.getCsmFile(CsmFileTaskFactory.java:218)
	at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory.access$900(CsmFileTaskFactory.java:72)
	at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$CsmSafeRunnable.run(CsmFileTaskFactory.java:396)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
Comment 1 Vladimir Voskresensky 2009-01-20 00:10:46 UTC
fixed:
http://hg.netbeans.org/main?cmd=changeset;node=bbf86030e518
Comment 2 Quality Engineering 2009-01-20 19:10:00 UTC
Integrated into 'main-golden', will be available in build *200901201401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/bbf86030e518
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed IZ#157054: FileStateInvalidException if user deletes file