EyeSeeTea / malariapp

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

Fix crash executing push after logout #2471

Closed xurxodev closed 2 years ago

xurxodev commented 2 years ago

Fix null pointer exception to delete survey:

:gear: branches

app: Origin: fix/crash_executing_push_from_logoutTarget: 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 crash when push is executing during logout process and before cancel alarm

:memo: How is it being implemented?

If load credentials is executed and shared preferences for url, user, and password are empty then set credentials to null in session. When from push service the credentials are retrieved from the session if credentials are null then not execute the push

:boom: How can it be tested?

It's difficult to reproduce

:floppy_disk: Requires DB migration?

:art: UI changes?