xiatian 5 years ago
parent
commit
b437ba48fc

+ 2 - 0
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/util/ExportPaperUtil.java

@@ -529,6 +529,8 @@ public class ExportPaperUtil {
             List<JSection> slist3 = getSections(qes.getQuesAnswer());
             if (slist3 == null) {
                 slist3=new ArrayList<JSection>();
+                JSection sec=new JSection();
+                slist3.add(sec);
             }
             SectionElement se = new SectionElement();
             se.setType(ELEMENT_TYPE_TEXT);