fix: guard goBack() against size-1 stack underflow

This commit is contained in:
M57 committed 2026-06-18 02:30:27 +03:00
1 parent a28d53127f
commit 73126dc94b
1 file changed
+2 -1
@@ -21,6 +21,7 @@ object NavigationController {
}
fun goBack() {
backStack?.removeLastOrNull()
val stack = backStack ?: return
if (stack.size > 1) stack.removeLastOrNull()
}
}