Skip to content
Snippets Groups Projects
Commit c6c82b80 authored by srosse's avatar srosse
Browse files

OO-1414: check against null

parent a335496e
No related branches found
No related tags found
No related merge requests found
...@@ -77,6 +77,8 @@ public class Rule { ...@@ -77,6 +77,8 @@ public class Rule {
} }
public boolean match(UserSession userSession) { public boolean match(UserSession userSession) {
if(userSession == null || userSession.getRoles() == null) return false;
boolean match = true; boolean match = true;
//match the role? //match the role?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment