Get assignee from ChangeIndex

Change-Id: Ib36dedb430900590cbdc8f444903ebfbd6b7437c
This commit is contained in:
Sven Selberg
2016-09-20 14:37:43 +02:00
parent c2d215858b
commit 72f61c4936
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;
}
};