Skip to content

Commit

Permalink
[APT-10372] Prevent Crashing If Clients Act Too Early
Browse files Browse the repository at this point in the history
The `ActionBeforeSetup` exception is being thrown from an area designed to handle errors, resulting in crashing.  We catch these exceptions and update the error state instead.
  • Loading branch information
kabliz committed Sep 17, 2024
1 parent cad04f5 commit beb79fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Armadillo/src/main/java/com/scribd/armadillo/Reducer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ internal object Reducer {
} catch (ex: InvalidRequest) {
return oldState.copy(error = ex)
.apply { debugState = newDebug }
} catch (ex: UnrecognizedAction) {
return oldState.copy(error = ex)
.apply { debugState = newDebug }
}
}

Expand Down

0 comments on commit beb79fb

Please sign in to comment.