Project Information
- Repository: https://github.com/7LPdWcaW/GrowTracker-Android
- Project Name: Grow Tracker
- My Submitted Issue: here
- My GitHub Acccount: here
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.
- Open the app.
- Go to the settings.
- Tap on the "Encrypt data" to enable it and click "ACCEPT" by giving a passphrase twice.
- Now tap on the "Fail safe" and accept the warning.
- 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)