[GrowTracker][v2.5.1] The app crashed when I entered nothing as passphrase to activate the fail safe option

in #utopian-io5 years ago

Project Information

Expected behavior

I expected that the app would notify me or stop me to do so when I entered nothing as the passphrase to activate the fail-safe option.

Actual behavior

After activating "Encrypt data" by giving the passphrase, when I entered nothing as the passphrase to activate the "fail-safe" option, then the app crashed.

How to reproduce

Here is every possible detail to reproduce the bug.

  1. Open the app.
  2. Go to the settings.
  3. Tap on the "Encrypt data" to enable it and click "ACCEPT" by giving a passphrase twice.
  4. Now tap on the "Fail safe" and accept the warning.
  5. Click on the "ACCEPT" and give nothing in the field twice and notice the bug.
  • App version: 2.5.1
  • Operating system: Android 6.0.1

Recording Of The Bug

LogCat

07-01 23:08:28.537 31430 31430 E AndroidRuntime: FATAL EXCEPTION: main

07-01 23:08:28.537 31430 31430 E AndroidRuntime: Process: me.anon.grow, PID: 31430

07-01 23:08:28.537 31430 31430 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

07-01 23:08:28.537 31430 31430 E AndroidRuntime:    at me.anon.grow.fragment.SettingsFragment$7$2.onDialogConfirmed(SettingsFragment.java:406)

07-01 23:08:28.537 31430 31430 E AndroidRuntime:    at me.anon.grow.fragment.PinDialogFragment$1.onClick(PinDialogFragment.java:74)

07-01 23:08:28.537 31430 31430 E AndroidRuntime:    at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:174)

07-01 23:08:28.537 31430 31430 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)

07-01 23:08:28.537 31430 31430 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:148)

07-01 23:08:28.537 31430 31430 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7325)

07-01 23:08:28.537 31430 31430 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)

07-01 23:08:28.537 31430 31430 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)

07-01 23:08:28.537 31430 31430 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Sort:  

Hey, @sagorahmed. Thank you for your contribution. Again, you have done well. But it does not look like the PO fixed this one already just as he did for the other report. Perhaps this fix could be more challenging. Do endeavor to follow up with the PO if need be.

I look forward to your next contribution.

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!