public SPProfilePage(WOContext context) {
super(context);
EOEditingContext editingContext = ERXEC.newEditingContext();
_person = session().currentPerson().localInstanceIn(editingContext);
}
<BUG>public WOActionResults updateProfile() {
if (!ERXExtensions.safeEquals(SPPerson.hashPassword(_currentPassword), _person.password())) {</BUG>
_currentPassword = null;
session().errors().addNotice("Your current password does not match the password you provided.");
<BUG>return null;
}
if (ERXStringUtilities.nullForEmptyString(_person.name()) == null) {
session().errors().addNotice("Your must set a name.");</BUG>
return null;

public SPProfilePage(WOContext context) {
super(context);
EOEditingContext editingContext = ERXEC.newEditingContext();
_person = session().currentPerson().localInstanceIn(editingContext);
}
public WOActionResults updateProfile() {
if (session().errors().hasNotices()) {
return null;
}
if (ERXStringUtilities.nullForEmptyString(_password) != null) {
if (!ERXExtensions.safeEquals(SPPerson.hashPassword(_currentPassword), _person.password())) {
_currentPassword = null;
session().errors().addNotice("Your current password does not match the password you provided.");
return null;
