else if (Validator.isNull(description)) {
throw new QuestionDescriptionException();
}
if (choices.size() < 2) {
throw new QuestionChoiceException();
}
for (int i = 0; i < choices.size(); i++) {
PollsChoice choice = (PollsChoice)choices.get(i);
if (Validator.isNull(choice.getChoiceId()) ||
Validator.isNull(choice.getDescription())) {
throw new QuestionChoiceException();
}
}
}