return absent when null
This commit is contained in:
parent
edc74f015d
commit
4a9ee42a3c
1 changed files with 3 additions and 0 deletions
|
@ -164,6 +164,9 @@ public class AndroidfileSystemPassStore implements PassStore {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<Passbook> getCurrentPass() {
|
public Optional<Passbook> getCurrentPass() {
|
||||||
|
if (actPass == null) {
|
||||||
|
return Optional.absent();
|
||||||
|
}
|
||||||
|
|
||||||
return Optional.of(actPass);
|
return Optional.of(actPass);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue