opensrp / fhircore

FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
https://smartregister.org
Apache License 2.0
50 stars 41 forks source link

App crashing due to a NPE when loading a register after login #3118

Closed allan-on closed 4 months ago

allan-on commented 4 months ago

Describe the bug On login after entering correct credentials, the app crashes. When checking the logs, there's a Null Pointer Exception associated with the ExtendedFab class.

To Reproduce Steps to reproduce the behaviour:

  1. Launch the app
  2. Enter the App ID in the App Settings screen to load the app configs
  3. Enter login credentials (and set PIN if enabled)
  4. The app crashes immediately

Expected behaviour On successful login, the register should load

Screenshots login_app_crash.webm

Additional context

Logs

java.lang.NullPointerException at org.smartregister.fhircore.quest.ui.shared.components.ExtendedFabKt$ExtendedFab$2.invoke(ExtendedFab.kt:92) at org.smartregister.fhircore.quest.ui.shared.components.ExtendedFabKt$ExtendedFab$2.invoke(ExtendedFab.kt:78)