From 011acba666d47e499c4b28f089c1a9ad01203ed3 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 13 Sep 2012 00:35:46 -0300 Subject: [PATCH] Minor fix. --- .../java/com/wisemapping/service/MindmapServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/service/MindmapServiceImpl.java b/wise-webapp/src/main/java/com/wisemapping/service/MindmapServiceImpl.java index dba5c94c..6cbf81b9 100755 --- a/wise-webapp/src/main/java/com/wisemapping/service/MindmapServiceImpl.java +++ b/wise-webapp/src/main/java/com/wisemapping/service/MindmapServiceImpl.java @@ -70,7 +70,7 @@ public class MindmapServiceImpl } private boolean isAdmin(User user) { - return (user != null && user.getEmail().equals(adminUser)); + return user != null && user.getEmail() != null && user.getEmail().equals(adminUser); } @Override @@ -292,7 +292,8 @@ public class MindmapServiceImpl this.adminUser = adminUser; } - @NotNull public String getAdminUser() { + @NotNull + public String getAdminUser() { return adminUser; } }