Ranging: check if pointer is NULL.