ignore the null when put a pair to map