When create new Student and Tutor, following error happens:
Stacktrace:
java.lang.NullPointerException: Cannot invoke method compareTo() on null object
at uk.org.openmentor.courseinfo.Student.compareTo(Student.groovy:33)
at java.util.TreeMap.put(TreeMap.java:560)
at java.util.TreeSet.add(TreeSet.java:255)
at uk.org.openmentor.controller.StudentController$_closure3$$ENWkb9mF.doCall(StudentController.groovy:34)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
When create new Student and Tutor, following error happens:
Stacktrace: java.lang.NullPointerException: Cannot invoke method compareTo() on null object