fixed a potential issue which would be raised by empty value in tools_def.txt file

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@835 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jwang36 2006-07-08 11:04:34 +00:00
parent cfccc31e51
commit a10c040004
1 changed files with 2 additions and 1 deletions

View File

@ -693,7 +693,8 @@ public class GlobalData {
String[] commands = getToolChainInfo().getCommands();
for (int i = 0; i < commands.length; ++i) {
if (toolsDef.getConfig().get(new String[] {target, toolchain, arch, commands[i], ToolChainAttribute.NAME.toString()}) != null) {
String cmdName = toolsDef.getConfig().get(new String[] {target, toolchain, arch, commands[i], ToolChainAttribute.NAME.toString()});
if (cmdName != null && cmdName.length() != 0) {
return true;
}
}