Added check to ChoiceView to avoid NPE.