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:
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,
|
||||
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(
|
||||
|
|
Loading…
Add table
Reference in a new issue