Fixed #72: Three analyze warnings: Dereference of null pointer