Skip to content

Commit

Permalink
fixed null pointer exeption will viewing a content record in webtools
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535291 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
hansbak committed Oct 24, 2013
1 parent 834c6ac commit 2d5f290
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public Delegator getDelegator() {

@Override
public boolean hasEntityPermission(String entity, String action, GenericValue userLogin) {
if (userLogin == null) return false;
if (userLogin == null || entity == null || action == null) return false;
String permission = entity.concat(action);
String adminPermission = entity.concat("_ADMIN");
Iterator<GenericValue> iterator = findUserLoginSecurityGroupByUserLoginId(userLogin.getString("userLoginId"));
Expand Down

0 comments on commit 2d5f290

Please sign in to comment.