added null value handling to partitions