mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 04:45:38 +02:00
Bug 351718 - Avoid NPE when no default setting available
Change-Id: I2950bdcc30672fe3fa8e80b49f9bdeed17db5cdf Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
This commit is contained in:
parent
45966dd76d
commit
dfb713b5c8
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue