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

View this thread on steempeak.com
· @sagorahmed ·
$12.17
[GrowTracker][v2.5.1] The app crashed when I entered nothing as passphrase to activate the fail safe option
#### Project Information
* Repository: https://github.com/7LPdWcaW/GrowTracker-Android
* Project Name: Grow Tracker
* My Submitted Issue: [here](https://github.com/7LPdWcaW/GrowTracker-Android/issues/97)
* My GitHub Acccount: [here](https://github.com/sagorahmed)

#### 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)
```
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id77,458,164
authorsagorahmed
permlinkgrowtracker-v2-5-1-the-app-crashed-when-i-entered-nothing-as-passphrase-to-activate-the-fail-safe-option-1562227023469
categoryutopian-io
json_metadata{"app":"steeditor\/0.1.2","format":"markdown","tags":["utopian-io","bug-hunting"],"users":[],"links":["https:\/\/github.com\/7LPdWcaW\/GrowTracker-Android","https:\/\/github.com\/7LPdWcaW\/GrowTracker-Android\/issues\/97","https:\/\/github.com\/sagorahmed","https:\/\/www.youtube.com\/watch?v=k_kHczL1KzE"]}
created2019-07-04 07:57:12
last_update2019-07-04 07:57:12
depth0
children4
net_rshares25,710,235,351,414
last_payout2019-07-11 07:57:12
cashout_time1969-12-31 23:59:59
total_payout_value9.162 SBD
curator_payout_value3.003 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,526
author_reputation18,150,512,355,968
root_title"[GrowTracker][v2.5.1] The app crashed when I entered nothing as passphrase to activate the fail safe option"
beneficiaries
0.
accountutopian.pay
weight500
max_accepted_payout100,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (45)
@knowledges ·
$5.29
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](https://join.utopian.io/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](https://review.utopian.io/result/5/2-1-1-3-2-3-).

---- 
Need help? Chat with us on [Discord](https://discord.gg/uTyJkNm).

[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , , , , , , , , , , , ,
properties (23)
post_id77,458,568
authorknowledges
permlinkpu3yrg
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["sagorahmed"],"links":["https:\/\/join.utopian.io\/guidelines","https:\/\/review.utopian.io\/result\/5\/2-1-1-3-2-3-","https:\/\/discord.gg\/uTyJkNm","https:\/\/join.utopian.io\/"],"app":"steemit\/0.1"}
created2019-07-04 08:11:42
last_update2019-07-04 08:11:42
depth1
children1
net_rshares10,834,541,124,316
last_payout2019-07-11 08:11:42
cashout_time1969-12-31 23:59:59
total_payout_value4.064 SBD
curator_payout_value1.230 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length756
author_reputation96,976,535,910,824
root_title"[GrowTracker][v2.5.1] The app crashed when I entered nothing as passphrase to activate the fail safe option"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (19)
@utopian-io ·
Thank you for your review, @knowledges! Keep up the good work!
properties (22)
post_id77,566,263
authorutopian-io
permlinkre-pu3yrg-20190706t112306z
categoryutopian-io
json_metadata{"app":"beem\/0.20.17"}
created2019-07-06 11:23:09
last_update2019-07-06 11:23:09
depth2
children0
net_rshares0
last_payout2019-07-13 11:23:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length62
author_reputation152,913,012,544,965
root_title"[GrowTracker][v2.5.1] The app crashed when I entered nothing as passphrase to activate the fail safe option"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steem-ua ·
#### 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](https://discord.gg/KpBNYGz)**
properties (22)
post_id77,459,611
authorsteem-ua
permlinkre-growtracker-v2-5-1-the-app-crashed-when-i-entered-nothing-as-passphrase-to-activate-the-fail-safe-option-1562227023469-20190704t084613z
categoryutopian-io
json_metadata{"app":"beem\/0.20.19"}
created2019-07-04 08:46:15
last_update2019-07-04 08:46:15
depth1
children0
net_rshares0
last_payout2019-07-11 08:46:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length289
author_reputation23,203,609,903,979
root_title"[GrowTracker][v2.5.1] The app crashed when I entered nothing as passphrase to activate the fail safe option"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@utopian-io ·
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](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

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

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
post_id77,488,711
authorutopian-io
permlinkre-growtracker-v2-5-1-the-app-crashed-when-i-entered-nothing-as-passphrase-to-activate-the-fail-safe-option-1562227023469-20190704t215643z
categoryutopian-io
json_metadata{"app":"beem\/0.20.17"}
created2019-07-04 21:56:45
last_update2019-07-04 21:56:45
depth1
children0
net_rshares0
last_payout2019-07-11 21:56:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length592
author_reputation152,913,012,544,965
root_title"[GrowTracker][v2.5.1] The app crashed when I entered nothing as passphrase to activate the fail safe option"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000