mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
bug 342609: NPE in ChangeBuildConfigActionBase
This commit is contained in:
parent
69e391fbe1
commit
ca1d3510c6
1 changed files with 16 additions and 14 deletions
|
@ -254,6 +254,7 @@ public class ChangeBuildConfigActionBase {
|
|||
if (!badObject && !fProjects.isEmpty()) {
|
||||
Iterator<IProject> iter = fProjects.iterator();
|
||||
ICConfigurationDescription[] firstConfigs = getCfgs(iter.next());
|
||||
if (firstConfigs!=null) {
|
||||
for (ICConfigurationDescription firstConfig : firstConfigs) {
|
||||
boolean common = true;
|
||||
Iterator<IProject> iter2 = fProjects.iterator();
|
||||
|
@ -275,6 +276,7 @@ public class ChangeBuildConfigActionBase {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
action.setEnabled(enable);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue