Permalink
Browse files

Reconvert shibboleth attribute only if it is neither null nor empty.

  • Loading branch information...
pnbecker committed Mar 6, 2014
1 parent 7e6b805 commit c6016c830437c367551fc7f4b7e27011eec13c9d
Showing with 1 addition and 1 deletion.
  1. +1 −1 dspace-api/src/main/java/org/dspace/authenticate/ShibAuthentication.java
@@ -1102,7 +1102,7 @@ private String findAttribute(HttpServletRequest request, String name) {
"reconvert.attributes",
false);
- if (reconvertAttributes)
+ if (!StringUtils.isEmpty(value) && reconvertAttributes)
{
try {
value = new String(value.getBytes("ISO-8859-1"), "UTF-8");

0 comments on commit c6016c8

Please sign in to comment.