omtetra / openmentor-grails

OpenMentor, ported to Grails
3 stars 3 forks source link

Administrator cannot create new Student and Tutor #20

Closed sotonpz closed 11 years ago

sotonpz commented 12 years ago

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)