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