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 b72196ed2a6..59aacb4c66b 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 @@ -37,7 +37,9 @@ public class ExcludedFileDecorator implements ILightweightLabelDecorator { if (element instanceof IFile) { IFile resource = (IFile) element; ICProjectDescriptionManager mngr = CoreModel.getDefault().getProjectDescriptionManager(); - ICProjectDescription desc = mngr.getProjectDescription(resource.getProject()); + ICProjectDescription desc = mngr.getProjectDescription(resource.getProject(), false); + if (desc == null) + return; ICConfigurationDescription conf = desc.getDefaultSettingConfiguration(); ICSourceEntry[] entries = conf.getSourceEntries(); boolean isSource = false;