Fix for null pointer crash.
Fix for null pointer crash.

mleasyZhuZhiqiang/KSCrash,mleasyZhuZhiqiang/KSCrash,mindsnacks/KSCrash,mindsnacks/KSCrash,mleasyZhuZhiqiang/KSCrash,mindsnacks/KSCrash,mindsnacks/KSCrash