But yeah, if you're passing null to your Comparator, then your problem is probably higher up.