Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The app crashed when I entered nothing as passphrase to activate the fail safe option #97

Closed
sagorahmed opened this issue Jul 1, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@sagorahmed
Copy link

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

https://www.youtube.com/watch?v=k_kHczL1KzE

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)
@7LPdWcaW 7LPdWcaW self-assigned this Jul 1, 2019
@7LPdWcaW 7LPdWcaW added the bug label Jul 1, 2019
@7LPdWcaW 7LPdWcaW added this to the v2.6 milestone Jul 1, 2019
7LPdWcaW added a commit that referenced this issue Aug 8, 2019
Merge branch 'fix/empty-passphrase' into develop

* fix/empty-passphrase:
  Prevent empty passphrases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants