File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
ilg.gnuarmeclipse.managedbuild.cross/src/ilg/gnuarmeclipse/managedbuild/cross/ui Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -601,8 +601,12 @@ private void updateControlsForConfig(IConfiguration config) {
601601 // .println("Previous toolchain name " + fSelectedToolchainName);
602602 if (fSelectedToolchainName != null
603603 && fSelectedToolchainName .length () > 0 ) {
604- fSelectedToolchainIndex = ToolchainDefinition
605- .findToolchainByName (fSelectedToolchainName );
604+ try {
605+ fSelectedToolchainIndex = ToolchainDefinition
606+ .findToolchainByName (fSelectedToolchainName );
607+ } catch (IndexOutOfBoundsException e ) {
608+ fSelectedToolchainIndex = ToolchainDefinition .getDefault ();
609+ }
606610 } else {
607611 if (Activator .getInstance ().isDebugging ()) {
608612 System .out .println ("No toolchain selected" );
You can’t perform that action at this time.
0 commit comments