ObjectComparator constructor Null safety

ObjectComparator()