Fix: Create Savings Account crash due to invalid numeric input#2006
Fix: Create Savings Account crash due to invalid numeric input#2006rahul31124 wants to merge 1 commit intoopenMF:developmentfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughUpdated numeric input handling in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Issue Fix
Fixes #{MW-396}
Jira Task: MW-396
Screenshots
Record_2026-04-12-19-18-12_6a5d239ecc870d7d1b844aa672071987.mp4
Description
The Create Savings Account screen was crashing when numeric fields were empty or contained invalid values because the app was directly parsing them to
LongandDouble.To fix this, safe parsing was added using
toLongOrNull()andtoDoubleOrNull()with default fallback values. This prevents crashes by handling empty or invalid inputs.Apply the
AndroidStyle.xmlstyle template to your code in Android Studio.Run the unit tests with
./gradlew checkto make sure you didn't break anythingIf you have multiple commits please combine them into one commit by squashing them.
Summary by CodeRabbit
Release Notes