if (!isNew) {
UIBranchContainer actionBlock = UIBranchContainer.make(newPoll, "option-headers:");
UIMessage.make(actionBlock,"options-title","new_poll_option_title");
UIInternalLink.make(actionBlock,"option-add",UIMessage.make("new_poll_option_add"),
new OptionViewParameters(PollOptionProducer.VIEW_ID, null, poll.getPollId().toString()));
<BUG>List votes = pollVoteManager.getAllVotesForPoll(poll);
</BUG>
if (votes != null && votes.size() > 0 ) {
m_log.debug("Poll has " + votes.size() + " votes");
UIBranchContainer errorRow = UIBranchContainer.make(tofill,"error-row:", "0");

if (!isNew) {
UIBranchContainer actionBlock = UIBranchContainer.make(newPoll, "option-headers:");
UIMessage.make(actionBlock,"options-title","new_poll_option_title");
UIInternalLink.make(actionBlock,"option-add",UIMessage.make("new_poll_option_add"),
new OptionViewParameters(PollOptionProducer.VIEW_ID, null, poll.getPollId().toString()));
List<Vote> votes = pollVoteManager.getAllVotesForPoll(poll);
if (votes != null && votes.size() > 0 ) {
m_log.debug("Poll has " + votes.size() + " votes");
UIBranchContainer errorRow = UIBranchContainer.make(tofill,"error-row:", "0");
