]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/org/splat/som/StudyRights.java
Salome HOME
NullPointerException situations are excluded
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / som / StudyRights.java
index f83bf9b67f63bfadc3df804f7de9925afc360dfe..c4bf7f954df64b8fb91f772f224900f61782ee00 100644 (file)
@@ -23,7 +23,10 @@ public class StudyRights {
 //  -------------------------------------------
       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) {
 //  --------------------------------