diff options
author | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-08 11:04:34 +0000 |
---|---|---|
committer | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-08 11:04:34 +0000 |
commit | a10c0400046150093a25a2d3b5ecf939a6d0ec6b (patch) | |
tree | be2f7d5be65a3d19a5b2575540b0603762cbfc89 | |
parent | cfccc31e51fb2c7075aabb199fde25857ddd02cc (diff) | |
download | edk2-a10c0400046150093a25a2d3b5ecf939a6d0ec6b.tar.gz edk2-a10c0400046150093a25a2d3b5ecf939a6d0ec6b.tar.bz2 edk2-a10c0400046150093a25a2d3b5ecf939a6d0ec6b.zip |
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
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java b/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java index 75c637ffe1..bfeea8ae16 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java +++ b/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java @@ -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;
}
}
|