1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

[ 240984] - fixed NPE

This commit is contained in:
Alena Laskavaia 2008-07-15 20:09:47 +00:00
parent 80c2baf464
commit 2f02ca8f91

View file

@ -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() ;