1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 03:45:35 +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); ICProjectDescription prjDescription = CoreModel.getDefault().getProjectDescription(rc.getProject(), false);
if (prjDescription != null) { if (prjDescription != null) {
ICConfigurationDescription cfgDescription = prjDescription.getDefaultSettingConfiguration(); ICConfigurationDescription cfgDescription = prjDescription.getDefaultSettingConfiguration();
IPath path = rc.getProjectRelativePath(); if (cfgDescription != null) {
ICResourceDescription rcDescription = cfgDescription.getResourceDescription(path, true); IPath path = rc.getProjectRelativePath();
if (rcDescription != null) ICResourceDescription rcDescription = cfgDescription.getResourceDescription(path, true);
result |= TICK_CONFIGURATION; if (rcDescription != null)
result |= TICK_CONFIGURATION;
}
} }
return result; return result;
} }