Open anandwana001 opened 2 weeks ago
This crash occurerd 20 times in the last 30 days, all from DataCollectionViewModel
, but with no crash keys set. This implies that the crash occurred outside of the normal app lifecycle, perhaps after a draft was restored after the app was killed. Filing as P1.
The crash occurs here:
private val activeSurvey: Survey = requireNotNull(surveyRepository.activeSurvey)
This sounds like a race condition because we're using a synchronous call to activeSurvey
, which may not have been initialized yet when the view is being restored. Likely happening after the app is killed and restarted during data collection.