Skip to content
Snippets Groups Projects
Commit ba9b419c authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Merge branch 'fix-potential-null-pointer' into 'master'

Fix possible null pointer dereference

See merge request arsnova/arsnova-backend!98
parents 7f63ded8 f710136c
No related merge requests found
......@@ -227,7 +227,7 @@ public class ApplicationPermissionEvaluator implements PermissionEvaluator {
}
room = roomRepository.findOne(targetMotd.getRoomId());
return room != null && !room.isClosed() || room.getOwnerId().equals(userId);
return room != null && (!room.isClosed() || room.getOwnerId().equals(userId));
default:
return false;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment