[Bitcoin Wallet] [v1.1.3]The app crashed when I tried to cancel the pin changing process by pressing the back button

in #utopian-io5 years ago

Related Information

Expected behavior

I expected that the app would not crash when I canceled the pin changing process by pressing the back button.
I believe the users should be able to press the back button during that encryption process.

Actual behavior

When I tried to change my pin and pressed the back button during that process, then the app crashes immediately.

How to reproduce

Here is every possible detail to reproduce the bug.
1. Download the app from here and open it after install. (You can't produce this bug by installing the latest version from Playstore because the PO has already fixed this issue and updated it to the Playstore. But you can take a look at this bug by downloading from Google drive which is currently installed on my phone)
2. Click on ⋮ (Three dots/ Vertical ellipsis).
3. Then click on "Change Pin Code" and fill these fields with the valid pin. (Set up a pin before try this).
4. Then press "EDIT", and then press the back button immediately and notice the bug.

  • App version: 1.1.3
  • Operating system: Android 6.0.1

Recording Of The Bug

bug

LogCat

05-17 14:33:31.464 24995 25180 E AndroidRuntime: FATAL EXCEPTION: backgroundThread

05-17 14:33:31.464 24995 25180 E AndroidRuntime: Process: com.bitcoin.wallet.btc, PID: 24995

05-17 14:33:31.464 24995 25180 E AndroidRuntime: java.lang.IllegalStateException: Fragment EncryptKeysDialogFragment{e59cdde} not attached to an activity.

05-17 14:33:31.464 24995 25180 E AndroidRuntime:    at androidx.fragment.app.Fragment.requireActivity(Fragment.java:724)

05-17 14:33:31.464 24995 25180 E AndroidRuntime:    at com.bitcoin.wallet.btc.ui.fragments.EncryptKeysDialogFragment$handleGo$1.run(EncryptKeysDialogFragment.kt:98)

05-17 14:33:31.464 24995 25180 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:739)

05-17 14:33:31.464 24995 25180 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:95)

05-17 14:33:31.464 24995 25180 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:148)

05-17 14:33:31.464 24995 25180 E AndroidRuntime:    at android.os.HandlerThread.run(HandlerThread.java:61)
Sort:  

Hi, @sagorahmed. Thank you for reporting this via Utopian. Please see to that you follow up with the PO in case they need more info to detect or solve the issues. Great work finding and reporting this crash. I am looking forward to your next report.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Thank you for your review, @knowledges! Keep up the good work!

Hi @sagorahmed!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @sagorahmed!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Congratulations @sagorahmed! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You received more than 4000 upvotes. Your next target is to reach 5000 upvotes.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

New japanese speaking community Steem Meetup badge
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.029
BTC 68237.15
ETH 3499.75
USDT 1.00
SBD 2.72