Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 281220 - [project-analyser] Logs an ResourceException
Summary: [project-analyser] Logs an ResourceException
Status: CLOSED FIXED
Alias: None
Product: M2T
Classification: Modeling
Component: Xpand (show other bugs)
Version: 0.7.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Patrick Schonbach CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-23 10:15 EDT by Dennis Huebner CLA
Modified: 2013-02-21 08:11 EST (History)
0 users

See Also:


Attachments
Patch that fixes the problem (1.01 KB, patch)
2009-06-25 16:54 EDT, Sebastian Zarnekow CLA
sven.efftinge: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Huebner CLA 2009-06-23 10:15:48 EDT
eclipse 3.5RC4
Xpand SDK Version: 0.7.0.v200906160952 Build id: 200906160952

ProjectAnalyzer suddenly logs an exception see trace below:

org.eclipse.core.internal.resources.ResourceException: Resource '/.org.eclipse.jdt.core.external.folders/.link0' does not exist.
at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:319)
at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:196)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:49)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:106)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:90)
at org.eclipse.xtend.typesystem.emf.ui.ProjectAnalyzer.loadMetamodelsForProject(ProjectAnalyzer.java:120)
at org.eclipse.xtend.typesystem.emf.ui.ProjectAnalyzer.run(ProjectAnalyzer.java:89)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


It's maybe a minor issue but IMHO should be investigated/fixed.
Line 118: 
if (rootResource != null) {
changing to 
if (rootResource != null && rootResource.exists()) {
Solves the problem, but one should handle the else clause.
Comment 1 Sebastian Zarnekow CLA 2009-06-25 16:54:55 EDT
Created attachment 140158 [details]
Patch that fixes the problem
Comment 2 Patrick Schonbach CLA 2009-06-29 08:49:51 EDT
Patch applied
Comment 3 Karsten Thoms CLA 2013-02-21 08:11:24 EST
Bug resolved before Xpand 1.2 release date => Closing