eclipse plugin: Prevent a NullPointerException when...
...there is no selected install
This commit is contained in:
parent
7f61ee7a0d
commit
63eb1c3dea
1 changed files with 1 additions and 1 deletions
|
@ -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( ) );
|
||||
|
|
Loading…
Add table
Reference in a new issue