fixed handling if user is not found

This commit is contained in:
jomu
2015-04-20 15:57:02 +00:00
parent 6d63141828
commit 190a20fd17

View File

@ -40,6 +40,8 @@ public class SPUser extends SPJaxbObject<User> {
if (returnValue == null) { if (returnValue == null) {
return null; return null;
} else if (returnValue.equals("")) {
return null;
} else { } else {
return returnValue.substring(7); // drop [i:0#.w| return returnValue.substring(7); // drop [i:0#.w|
} }
@ -56,7 +58,7 @@ public class SPUser extends SPJaxbObject<User> {
public String getDisplayName() { public String getDisplayName() {
return getValue().displayName; return getValue().displayName;
} }
public String getEmail() { public String getEmail() {
return getValue().email; return getValue().email;
} }