add CheckNull() into it.