fix: Fix application crashes caused by improper handling of coroutine exceptions (#249)
This commit is contained in:
@@ -105,7 +105,11 @@ class HomeViewModel : ViewModel() {
|
||||
|
||||
fun initializeData() {
|
||||
viewModelScope.launch {
|
||||
try {
|
||||
loadCachedData()
|
||||
} catch(e: Exception) {
|
||||
Log.e(TAG, "Error when reading cached data", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user