1
0
Fork 0
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:
Karsten Thoms 2018-02-16 12:12:06 +01:00
parent 45966dd76d
commit dfb713b5c8

View file

@ -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) {