eclipse plugin: Fix a nullreference exception when there...

...is currently no selection on the workspace
This commit is contained in:
Timotei Dolean 2011-04-03 21:14:08 +00:00
parent d15b996f68
commit 5c36e9cc91

View file

@ -232,7 +232,8 @@ public class WizardLauncherPage0 extends NewWizardPageTemplate
// opened file
lblCurrentFileOpened.setEnabled(!radioNewFile.getSelection());
txtDirectory_.setText(getWizard().getSelectionContainer().getFullPath().toString());
if (getWizard().getSelectionContainer() != null)
txtDirectory_.setText(getWizard().getSelectionContainer().getFullPath().toString());
updatePageIsComplete();
}