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:
parent
771fd82c2f
commit
28707df0c7
1 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue