Fixed #5433 (FP:Possible null pointer dereference)