mirror of https://github.com/acidanthera/audk.git
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:
parent
cfccc31e51
commit
a10c040004
|
@ -693,7 +693,8 @@ public class GlobalData {
|
||||||
String[] commands = getToolChainInfo().getCommands();
|
String[] commands = getToolChainInfo().getCommands();
|
||||||
|
|
||||||
for (int i = 0; i < commands.length; ++i) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue