Browse files

Make sure we don't ask for a role name for a null roleId

  • Loading branch information...
1 parent 20b363f commit db7a1c08aa971c18d086ea657a2281d1e44d32bd @buckett buckett committed Jan 3, 2012
View
9 authz-tool/tool/src/java/org/sakaiproject/authz/tool/PermissionsHelperAction.java
@@ -671,7 +671,14 @@ private void readForm(RunData data, AuthzGroup edit, SessionState state)
{
public String getName(String roleId)
{
- return AuthzGroupService.getRoleName(roleId);
+ if (roleId != null)
+ {
+ return AuthzGroupService.getRoleName(roleId);
+ }
+ else
+ {
+ return "";
+ }
}
}
}

0 comments on commit db7a1c0

Please sign in to comment.