Skip to content

Commit

Permalink
fix(datastore): prevent unhandled exception crashing App rebuilding s…
Browse files Browse the repository at this point in the history
…ync expression
  • Loading branch information
HuiSF authored and dnys1 committed Jan 12, 2023
1 parent 7278771 commit 91fc137
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,14 @@ class AmplifyDataStorePlugin : FlutterPlugin, MethodCallHandler {
}
)
}
latch.await()
try {
latch.await()
} catch (e: InterruptedException) {
LOG.error(
"Failed to resolve query predicate due to ${e}. Reverting to original query " +
"predicate."
)
}
resolvedQueryPredicate
}
} catch (e: Exception) {
Expand Down

0 comments on commit 91fc137

Please sign in to comment.