1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 11:55:40 +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,11 +384,13 @@ public class ProblemsLabelDecorator implements ILabelDecorator, ILightweightLabe
ICProjectDescription prjDescription = CoreModel.getDefault().getProjectDescription(rc.getProject(), false); ICProjectDescription prjDescription = CoreModel.getDefault().getProjectDescription(rc.getProject(), false);
if (prjDescription != null) { if (prjDescription != null) {
ICConfigurationDescription cfgDescription = prjDescription.getDefaultSettingConfiguration(); ICConfigurationDescription cfgDescription = prjDescription.getDefaultSettingConfiguration();
if (cfgDescription != null) {
IPath path = rc.getProjectRelativePath(); IPath path = rc.getProjectRelativePath();
ICResourceDescription rcDescription = cfgDescription.getResourceDescription(path, true); ICResourceDescription rcDescription = cfgDescription.getResourceDescription(path, true);
if (rcDescription != null) if (rcDescription != null)
result |= TICK_CONFIGURATION; result |= TICK_CONFIGURATION;
} }
}
return result; return result;
} }
} }