mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
[ 240984] - fixed NPE
This commit is contained in:
parent
80c2baf464
commit
2f02ca8f91
1 changed files with 2 additions and 0 deletions
|
@ -324,6 +324,8 @@ public class EnvironmentTab extends AbstractCPropertyTab {
|
||||||
b2.setSelection(!ce.appendEnvironment(cfgd));
|
b2.setSelection(!ce.appendEnvironment(cfgd));
|
||||||
_vars = ce.getVariables(cfgd);
|
_vars = ce.getVariables(cfgd);
|
||||||
} else {
|
} else {
|
||||||
|
if (vars == null)
|
||||||
|
vars = fUserSupplier.getWorkspaceEnvironmentCopy();
|
||||||
b1.setSelection(vars.appendContributedEnvironment());
|
b1.setSelection(vars.appendContributedEnvironment());
|
||||||
b2.setSelection(!vars.appendContributedEnvironment());
|
b2.setSelection(!vars.appendContributedEnvironment());
|
||||||
_vars = vars.getVariables() ;
|
_vars = vars.getVariables() ;
|
||||||
|
|
Loading…
Add table
Reference in a new issue