修复nullpointerexception 异常