Change to:
Validate.notNull(vector, "Bit vector cannot be null");