Skip to content

Commit f731b7b

Browse files
[#551] Fixing issue with existing projects using old toolchain id shows error after upgrade
1 parent 49daa89 commit f731b7b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • plugins/org.eclipse.embedcdt.managedbuild.cross.core/src/org/eclipse/embedcdt/managedbuild/cross/core/preferences

plugins/org.eclipse.embedcdt.managedbuild.cross.core/src/org/eclipse/embedcdt/managedbuild/cross/core/preferences/PersistentPreferences.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,10 @@ public String getToolchainPath(String toolchainId, String toolchainName, IProjec
163163
if (value != null && !value.isEmpty()) {
164164
return value;
165165
}
166-
167-
return "";
166+
// This could be a project using toolchain id created
167+
// using old hash mechanism, so just trying to get the
168+
// toolchain path using just the toolchain name.
169+
return getToolchainPath(toolchainName, project);
168170
}
169171

170172
/**

0 commit comments

Comments
 (0)