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