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

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