Skip to content

Commit

Permalink
Handle exception on restore in ManageAccountFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol committed Dec 20, 2024
1 parent 67131e8 commit 721dc5a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ class ManageAccountFragment : BaseComposeFragment() {

@Composable
override fun GetContent(navController: NavController) {
val input = navController.requireInput<Input>()
val input = try {
navController.requireInput<Input>()
} catch (e: NullPointerException) {
navController.popBackStack()
return
}
ManageAccountScreen(
navController,
input.accountId
Expand Down

0 comments on commit 721dc5a

Please sign in to comment.