cannot invoke java.lang.comparable.compareto(object) because pivot is null