Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334447

Summary: [codan] ResourceException finding markers
Product: [Tools] CDT Reporter: Marc-André Laperle <malaperle>
Component: cdt-codanAssignee: Elena Laskavaia <elaskavaia.cdt>
Status: RESOLVED FIXED QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Call stack from log
none
Fix ResourceException when finding makers cdtdoug: iplog-

Description Marc-André Laperle CLA 2011-01-14 20:42:16 EST
Created attachment 186867 [details]
Call stack from log

Using 8.0.0.201101141202

I'm not sure how to trigger this but I have a lot of exceptions when I type.
I have a weird project setup, that might explain it.

-Base (project closed)
-Main (project open)
  -Base (folder but same as the project)

Attached it the call stack from the Error log
Comment 1 Marc-André Laperle CLA 2011-01-14 20:45:23 EST
Created attachment 186868 [details]
Fix ResourceException when finding makers

This should fix the exception but it probably hides a deeper problem.
Comment 2 Elena Laskavaia CLA 2011-01-14 22:06:58 EST
I think your patch is fine it just trips over closed projects
Comment 3 Elena Laskavaia CLA 2011-01-17 21:16:30 EST
thanks for the patch
Comment 4 CDT Genie CLA 2011-01-17 21:23:03 EST
*** cdt cvs genie on behalf of elaskavaia ***
Bug 334447 - exception on closed project - patch committed

[*] CodanMarkerProblemReporter.java 1.21 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanMarkerProblemReporter.java?root=Tools_Project&r1=1.20&r2=1.21