mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 02:36:01 +02:00
Bug 334447 - exception on closed project - patch committed
This commit is contained in:
parent
ea13804fa6
commit
5f895da197
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Reference in a new issue