Related Informations
- Repository: https://github.com/MahmoudMabrok/QuranyApp
- Project Name: Qurany App
- My Submitted Issue: here
- My GitHub Account: here
Expected behavior
I expected that the app wouldn't crash after submitting "0" as the "start from ayah and end at ayah" for a full/random test.
Actual behavior
When I clicked on full/random test after entering "0" as the "start from and end at ayah" digit, then the app crashed.
How to reproduce
Here is every possible detail to reproduce the bug.
- Open the app.
- Go to the "Test" tab.
- Give '0/zero' on the start from and end at ayah field.
- Press on "FULL TEST" or "RANDOM TEST" and notice the bug.
- App version: 2.5.1
- Operating system: Android 6.0.1
Recording Of The Bug
LogCat
07-02 01:05:18.238 23615 23615 E AndroidRuntime: FATAL EXCEPTION: main
07-02 01:05:18.238 23615 23615 E AndroidRuntime: Process: education.mahmoud.quranyapp, PID: 23615
07-02 01:05:18.238 23615 23615 E AndroidRuntime: java.lang.NullPointerException: Attempt to read from field 'int education.mahmoud.quranyapp.data_layer.local.room.c.a' on a null object reference
07-02 01:05:18.238 23615 23615 E AndroidRuntime: at education.mahmoud.quranyapp.feature.test_quran.TestFragment.a(Unknown Source)
07-02 01:05:18.238 23615 23615 E AndroidRuntime: at education.mahmoud.quranyapp.feature.test_quran.TestFragment.onbtnTestSaveRandom(Unknown Source)
07-02 01:05:18.238 23615 23615 E AndroidRuntime: at education.mahmoud.quranyapp.feature.test_quran.TestFragment_ViewBinding$2.a(Unknown Source)
07-02 01:05:18.238 23615 23615 E AndroidRuntime: at butterknife.a.a.onClick(Unknown Source)
07-02 01:05:18.238 23615 23615 E AndroidRuntime: at android.view.View.performClick(View.java:5714)
07-02 01:05:18.238 23615 23615 E AndroidRuntime: at android.widget.TextView.performClick(TextView.java:10932)
07-02 01:05:18.238 23615 23615 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:22589)
07-02 01:05:18.238 23615 23615 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
07-02 01:05:18.238 23615 23615 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
07-02 01:05:18.238 23615 23615 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
07-02 01:05:18.238 23615 23615 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7325)
07-02 01:05:18.238 23615 23615 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
07-02 01:05:18.238 23615 23615 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
07-02 01:05:18.238 23615 23615 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)