Pablo
10/29/2020, 8:47 AMflow {
val resultService = service.getWhatever()
val mapStuff = resultService.mapper() <-- it throws NullPointer
emit(mapStuff)
}
Then on my viewmodel I have
usecase.execute(2)
.catch{do something}
.collect{expectedStuff}
What I'm missing? Do I have to add a .catch
on my datasource so the viewmodel is aware something crashed?gildor
10/29/2020, 8:51 AMRuckus
10/29/2020, 3:01 PMcatch { do something }
)"gildor
10/30/2020, 1:54 AMPablo
10/31/2020, 12:23 PMgildor
10/31/2020, 12:58 PM