Skip to content

Commit

Permalink
fix NoSuchElementException when account is disabled/inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkelDok authored and buchen committed Dec 22, 2024
1 parent d7d212f commit 9ee56b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public List<ClientFilterMenu.Item> getOptions()
@Override
public ClientFilterMenu.Item valueOf(String s)
{
return clientFilterMenu.getAllItems().filter(item -> item.getId().equals(s)).findAny().orElseThrow();
return clientFilterMenu.getAllItems().filter(item -> item.getId().equals(s)).findAny().orElse(null);
}

@Override
Expand Down

0 comments on commit 9ee56b3

Please sign in to comment.