Merge "Get assignee from ChangeIndex"

This commit is contained in:
David Pursehouse
2016-09-22 12:39:10 +00:00
committed by Gerrit Code Review
6 changed files with 35 additions and 12 deletions

View File

@@ -323,8 +323,8 @@ public class ChangeField {
@Override
public Integer get(ChangeData input, FillArgs args)
throws OrmException {
Account.Id id = input.assignee();
return id != null ? id.get() : NO_ASSIGNEE;
Optional<Account.Id> id = input.assignee();
return id.isPresent() ? id.get().get() : NO_ASSIGNEE;
}
};