solve nullpointer exception

Signed-off-by: taocunguijs <taocunguijs@163.com>