fix bug for set NULL
Signed-off-by: qijiang.guo <qijiang.guo@gmail.com>