mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 392932 - ResourceException disabling checker in Codan preferences
This commit is contained in:
parent
add4edd847
commit
b9e2be2744
1 changed files with 3 additions and 0 deletions
|
@ -168,6 +168,9 @@ public class CodanRunner {
|
||||||
|
|
||||||
private static void removeMarkersForDisabledProblems(CheckersRegistry chegistry,
|
private static void removeMarkersForDisabledProblems(CheckersRegistry chegistry,
|
||||||
Set<String> markerTypes, IResource resource, IProgressMonitor monitor) throws CoreException {
|
Set<String> markerTypes, IResource resource, IProgressMonitor monitor) throws CoreException {
|
||||||
|
if (!resource.isAccessible()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
IResource[] children = null;
|
IResource[] children = null;
|
||||||
if (resource instanceof IContainer) {
|
if (resource instanceof IContainer) {
|
||||||
children = ((IContainer) resource).members();
|
children = ((IContainer) resource).members();
|
||||||
|
|
Loading…
Add table
Reference in a new issue