Since I79af43ff2, a new checkState was added when getting the accountId from a ChangeUpdate. In the case of auto-abandoning, the user is the Gerrit System so the account id is null. For this reason, an exception was thrown. The fix is to use the nullable get method instead which does not check if the id is null. Change-Id: I60e176cc071d22ac2c4f1f8b4340981bf5709ea2