lib: fix a NULL pointer caused error

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
1 file changed