Fachschaft07 / fs-rest

REST interface for several services
6 stars 1 forks source link

NullPointerException on FWP subjects #55

Closed FHellmann closed 8 years ago

FHellmann commented 8 years ago

Every request to get a FWP subject leads to a NullPointerException.

For example: https://fs.cs.hm.edu/rest/api/1/timetable/lessons?group=IF&module=technicalwritingincomputerscience&teacher=balazsaniko

Result:

{"errorCode":101,"exception":"java.lang.NullPointerException","message":null,"url":"http://192.168.60.102:9090/rest/api/1/timetable/lessons"}
lucaspataro commented 8 years ago

Fixed and deployed with #56 . The problem was that one of the FWP entries does not have an module assigned but we didn't check for it.