eclipse plugin: Prevent a NullPointerException when...

...there is no selected install
This commit is contained in:
Timotei Dolean 2011-07-15 21:09:48 +00:00
parent 7f61ee7a0d
commit 63eb1c3dea

View file

@ -571,7 +571,7 @@ public class WesnothInstallsPage extends AbstractPreferencePage
// we are creating a new install. Clear the editable
// flag after we save it, to prevent renaming.
txtInstallName_.setEditable( false );
} else { // just saving
} else if ( getSelectedInstall( ) != null ) { // just saving
// the fields are automatically saved by Eclipse.
// we just need to save the new version.
getSelectedInstall( ).setVersion( cmbVersion_.getText( ) );