dashpay / dash-wallet

Dash Wallet for Android
https://dash.org
172 stars 168 forks source link

fix: prevent NPE after corrupt wallet requires backup restoration #1267

Closed HashEngineering closed 3 months ago

HashEngineering commented 3 months ago

Issue being fixed or feature implemented

This fixes a crash that one user had 900+ times.

If the wallet file becomes corrupted, the backup wallet file is restored, but during that process wallet is null and will result in an NPE when the blockchain is reset.

Related PR's and Dependencies

Screenshots / Videos

How Has This Been Tested?

Checklist: