[FP] Dereference of null pointer
Bug fixes