handle the null case.