closed #5188, fixed android NULL pointer exception