]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/AutoGen/AutoGen.py
BaseTools: Fix the bug when no FD section in the FDF file
authorYonghong Zhu <yonghong.zhu@intel.com>
Tue, 26 Jan 2016 08:45:34 +0000 (08:45 +0000)
committeryzhu52 <yzhu52@Edk2>
Tue, 26 Jan 2016 08:45:34 +0000 (08:45 +0000)
commitcb04330eee96f3afc8d9f060b69859e3c068c3c9
tree629f25518cfdd683dc117870296f0ca120fdf9b9
parentaed8c66dac8731e8175cdeaff78e24c1ff728b90
BaseTools: Fix the bug when no FD section in the FDF file

Check if the Fdf.CurrentFdName is not None and in Fdf.Profile.FdDict
before using it which fix a crash issue when no FD section in FDF file.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19747 6f19259b-4bc3-4df7-8a09-765794883524
BaseTools/Source/Python/AutoGen/AutoGen.py