diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/viewsupport/ExcludedFileDecorator.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/viewsupport/ExcludedFileDecorator.java index b4427665d50..250f8a05752 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/viewsupport/ExcludedFileDecorator.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/viewsupport/ExcludedFileDecorator.java @@ -43,7 +43,7 @@ public class ExcludedFileDecorator implements ILightweightLabelDecorator { if (desc == null) return; ICConfigurationDescription conf = desc.getDefaultSettingConfiguration(); - ICSourceEntry[] entries = conf.getSourceEntries(); + ICSourceEntry[] entries = conf != null ? conf.getSourceEntries() : new ICSourceEntry[0]; boolean isUnderSourceRoot = false; IPath fullPath = resource.getFullPath(); for (ICSourceEntry icSourceEntry : entries) {