deal the null situation