|
|
@@ -343,6 +343,18 @@ public class EventQuestionModel extends CoinModel implements IUriListProvider {
|
|
|
|
|
|
public void setEventDetailBean(EventDetailBean eventDetailBean) {
|
|
|
this.eventDetailBean = eventDetailBean;
|
|
|
+ if (null == this.eventDetailBean.getEventQuestionList()) {
|
|
|
+ this.eventDetailBean.setEventQuestionList(new ArrayList<>());
|
|
|
+ }
|
|
|
+ if (null == this.eventDetailBean.getEventImageList()) {
|
|
|
+ this.eventDetailBean.setEventImageList(new ArrayList<>());
|
|
|
+ }
|
|
|
+ if (null == this.eventDetailBean.getEventPolicyList()) {
|
|
|
+ this.eventDetailBean.setEventPolicyList(new ArrayList<>());
|
|
|
+ }
|
|
|
+ if (null == this.eventDetailBean.getTagList()) {
|
|
|
+ this.eventDetailBean.setTagList(new ArrayList<>());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -440,7 +452,7 @@ public class EventQuestionModel extends CoinModel implements IUriListProvider {
|
|
|
}
|
|
|
|
|
|
private void answerInternal(int index, int subIndex, boolean checked, String text) {
|
|
|
- if (eventDetailBean.getEventQuestionList().size() == index) {
|
|
|
+ if (eventDetailBean.getEventPolicyList().size() > 0 && eventDetailBean.getEventQuestionList().size() == index) {
|
|
|
// 약관 동의
|
|
|
eventDetailBean.getEventPolicyList().get(subIndex).setChecked(checked);
|
|
|
}
|