修复空指针bug

fix NullpointerException