Author: timotei
Date: Fri Jul 15 23:09:48 2011
New Revision: 50332

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50332&view=rev
Log:
eclipse plugin: Prevent a NullPointerException when
there is no selected install

Modified:
    
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/preferences/WesnothInstallsPage.java

Modified: 
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/preferences/WesnothInstallsPage.java
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/preferences/WesnothInstallsPage.java?rev=50332&r1=50331&r2=50332&view=diff
==============================================================================
--- 
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/preferences/WesnothInstallsPage.java
 (original)
+++ 
trunk/utils/umc_dev/org.wesnoth/src/org/wesnoth/preferences/WesnothInstallsPage.java
 Fri Jul 15 23:09:48 2011
@@ -571,7 +571,7 @@
             // 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( ) );


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to