Issue #SCB2535
Ronny Voelker <[email protected]> Mon, 5 May 2008 18:22:00 +0200 (CEST)
| Newsgroups | gmane.comp.java.scarab.issues |
|---|---|
| Message-ID | <[email protected]> |
Activity report on *Defect SCB2535 - notification screen fails from auto created users* Scarab Link: http://www.solitone.org/scarab/issues/id/SCB2535 Module: Scarab Activity generated by Ronny Voelker ([email protected]) at 05/05/2008 18:20 *Comments* - By Ronny Voelker - 05/05/2008 18:20 --- "If we agree, that empty ActivityTypes must not be null, then the bug here is the empty ActivityType, not the exception thrown by NotificationStatus.compareTo. NotificationStatus.compareTo shouldn't have to deal with bugs in the code. This method, as well as all other parts of the code, should be allowed to assume that the ActivityType is filled and to simply fail, if this is not the case. We should add an assertion which throws an exception, if an Activity without ActivityType is saved, or better set the according database-column to 'not null'. This, at least, brings us closer to the root cause of the bug. "