EyeSeeTea / malariapp

Android app to help with health center assessments (development repository)
GNU General Public License v3.0
6 stars 3 forks source link

Remove lateinit for programs and orgUnits #2469

Closed xurxodev closed 2 years ago

xurxodev commented 2 years ago

:pushpin: References

:gear: branches

app: Origin: feature/fix_late_init_bugTarget: v1.6_hnqis bugshaker-android: Origin: development_android_x
EyeSeeTea-SDK: Origin: feature/development SDK: Origin: feature-2.30_upgrade_gradle

:tophat: What is the goal?

Fix kotlin.UninitializedPropertyAccessException: lateinit property programs has not been initialized

:memo: How is it being implemented?

I have not reproduced the error, but programs are loaded by use case then I think it's possible if the response is low that other methods where the program is used be invoked before programs are set. I have removed lateinit keyword and set it to an empty list by default.

:boom: How can it be tested?

:floppy_disk: Requires DB migration?

:art: UI changes?