1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

Bug 316289 - NPE in ProblemsLabelDecorator

This commit is contained in:
Anton Leherbauer 2010-08-13 09:37:02 +00:00
parent 771fd82c2f
commit 28707df0c7

View file

@ -384,10 +384,12 @@ public class ProblemsLabelDecorator implements ILabelDecorator, ILightweightLabe
ICProjectDescription prjDescription = CoreModel.getDefault().getProjectDescription(rc.getProject(), false);
if (prjDescription != null) {
ICConfigurationDescription cfgDescription = prjDescription.getDefaultSettingConfiguration();
IPath path = rc.getProjectRelativePath();
ICResourceDescription rcDescription = cfgDescription.getResourceDescription(path, true);
if (rcDescription != null)
result |= TICK_CONFIGURATION;
if (cfgDescription != null) {
IPath path = rc.getProjectRelativePath();
ICResourceDescription rcDescription = cfgDescription.getResourceDescription(path, true);
if (rcDescription != null)
result |= TICK_CONFIGURATION;
}
}
return result;
}