I realise this is because it's trying to access the compare method of the null object, but would it not be better to simply stop the sort there rather than throw an exception?
I realise this is because it's trying to access the compare method of the null object, but would it not be better to simply stop the sort there rather than throw an exception?