1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +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,
true, IResource.DEPTH_INFINITE);
} else {
if (resource.getProject() == null)
if (resource.getProject() == null || !resource.getProject().isAccessible())
return res;
// non resource markers attached to a project itself
markers = resource.getProject().findMarkers(