// -------------------------------------------
this.user = user;
this.operand = study;
- this.author = operand.getAuthor().equals(user); // user may be null
+
+ if (operand != null && operand.getAuthor() != null) {
+ this.author = operand.getAuthor().equals(user); // user may be null
+ }
}
public StudyRights (Study study) {
// --------------------------------