1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +02:00

Bug 334447 - exception on closed project - patch committed

This commit is contained in:
Alena Laskavaia 2011-01-18 02:15:51 +00:00
parent ea13804fa6
commit 5f895da197

View file

@ -137,7 +137,7 @@ public class CodanMarkerProblemReporter extends AbstractProblemReporter
markers = resource.findMarkers(GENERIC_CODE_ANALYSIS_MARKER_TYPE, markers = resource.findMarkers(GENERIC_CODE_ANALYSIS_MARKER_TYPE,
true, IResource.DEPTH_INFINITE); true, IResource.DEPTH_INFINITE);
} else { } else {
if (resource.getProject() == null) if (resource.getProject() == null || !resource.getProject().isAccessible())
return res; return res;
// non resource markers attached to a project itself // non resource markers attached to a project itself
markers = resource.getProject().findMarkers( markers = resource.getProject().findMarkers(