diff --git a/src/main/java/edu/iu/uits/lms/crosslist/controller/CrosslistController.java b/src/main/java/edu/iu/uits/lms/crosslist/controller/CrosslistController.java index 7a41fd6..a4e914a 100644 --- a/src/main/java/edu/iu/uits/lms/crosslist/controller/CrosslistController.java +++ b/src/main/java/edu/iu/uits/lms/crosslist/controller/CrosslistController.java @@ -376,7 +376,10 @@ public String doContinue(@PathVariable("courseId") String courseId, @RequestPara newEntry = false; } - uiSection.add(sectionUI); + if (sectionUI.getSectionId() != null) { + uiSection.add(sectionUI); + } + if (newEntry) { rebuiltTermMap.put(termMap.get(sectionUI.getTermId()), uiSection); }