From a10c0400046150093a25a2d3b5ecf939a6d0ec6b Mon Sep 17 00:00:00 2001 From: jwang36 Date: Sat, 8 Jul 2006 11:04:34 +0000 Subject: [PATCH] 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 --- .../Source/GenBuild/org/tianocore/build/global/GlobalData.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.39.2