Skip to content

Fix crashlytics crashes2#323

Open
ishwarchouhan07 wants to merge 9 commits intorelease-2.9from
fix-crashlytics-crashes2
Open

Fix crashlytics crashes2#323
ishwarchouhan07 wants to merge 9 commits intorelease-2.9from
fix-crashlytics-crashes2

Conversation

@ishwarchouhan07
Copy link
Copy Markdown
Collaborator

Previously fixed in fix-crashlytics-crashes branch (merged):

  • Dataset.triggerDependants - Replaced list.removeAll() with safe forEach { list.remove(it) } + added Mutex for thread safety to fix
    ArrayIndexOutOfBoundsException
  • Dataset.getStringFromPosition - Changed entries?.get() to entries?.getOrNull() to fix IndexOutOfBoundsException
  • EncryptedSharedPreferences - Added recovery for corrupted Android KeyStore in PreferenceManager and DatabaseKeyManager

New fixes in this branch (fix-crashlytics-crashes2):

  • ImmunizationFormViewModel - Changed lateinit var list to var list = emptyList() to fix crash when Android restores checkbox state before async
    data loads
  • FormInputAdapter.validateInput - Added null guard in validation loops to prevent NullPointerException on null FormElement entries during list
    diffing
  • AllHouseholdFragment - Added navigation destination guard to prevent double-tap crash when navigating to Household Members
  • AshaProfileViewModel - Initialize profileActivityCache with default when no saved record exists to fix UninitializedPropertyAccessException on
    save

Crashes investigated but skipped (low impact):

  • WorkManager internal DB corruption — 1 device, OS-level issue
  • Migration DEFAULT 'undefined' in INTEGER columns — old DB versions only
  • Gender enum null from corrupted DB — 1 device, old version
  • AbhaIdRepo force-unwrap on null server response — old versions only

▎ All fixed crashes had more than 3 events and occurred on more than 2 devices.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 23, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6c51fa81-2e09-4360-b76d-56e30681d778

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-crashlytics-crashes2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant