Skip to content

Commit

Permalink
Do not assume that if an argument bundle exists at all, then it must …
Browse files Browse the repository at this point in the history
…contain catalog stacks
  • Loading branch information
io7m committed May 21, 2015
1 parent b647f8c commit cad69a7
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ private void configureUpButton(
final Intent i = NullCheck.notNull(this.getIntent());
final Bundle a = i.getExtras();
if (a != null) {
return (ImmutableStack<CatalogUpStackEntry>) NullCheck.notNull(a
.getSerializable(CatalogActivity.CATALOG_UP_STACK_ID));
final ImmutableStack<CatalogUpStackEntry> stack =
(ImmutableStack<CatalogUpStackEntry>) a
.getSerializable(CatalogActivity.CATALOG_UP_STACK_ID);
if (stack != null) {
return stack;
}
}

final ImmutableStack<CatalogUpStackEntry> empty = ImmutableStack.empty();
Expand Down

0 comments on commit cad69a7

Please sign in to comment.