Skip to content

Commit

Permalink
Merge pull request #107 from iulia-vasii/iulia-dev
Browse files Browse the repository at this point in the history
allow Settings page to open in case toolchain is not defined
  • Loading branch information
ilg-ul committed Mar 28, 2016
2 parents f9cb996 + b763d06 commit 0c5e6c2
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,12 @@ private void updateControlsForConfig(IConfiguration config) {
// .println("Previous toolchain name " + fSelectedToolchainName);
if (fSelectedToolchainName != null
&& fSelectedToolchainName.length() > 0) {
fSelectedToolchainIndex = ToolchainDefinition
.findToolchainByName(fSelectedToolchainName);
try {
fSelectedToolchainIndex = ToolchainDefinition
.findToolchainByName(fSelectedToolchainName);
} catch (IndexOutOfBoundsException e) {
fSelectedToolchainIndex = ToolchainDefinition.getDefault();
}
} else {
if (Activator.getInstance().isDebugging()) {
System.out.println("No toolchain selected");
Expand Down

0 comments on commit 0c5e6c2

Please sign in to comment.