compareTo nullpointexception and log info