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 tried to minimize and maximize the app while listening to Ayah. #49

Open
sagorahmed opened this issue Jul 1, 2019 · 2 comments

Comments

@sagorahmed
Copy link

Expected behavior

I expected that I could minimize and maximize the app again while listening to the Ayah.

Actual behavior

When I tried to minimize and maximize the app while listening to the Ayah, then the app crashed.

How to reproduce

Here is every possible detail to reproduce the bug.

  1. Open the app.
  2. Go to the "Listen" tab.
  3. Give the Ayah's number in the start from and end at the field.
  4. Then click on the "LISTEN" button.
  5. When the Ayah start to play, minimize and maximize the app and see a crash.
  • App version: 2.5.1
  • Operating system: Android 6.0.1

Recording Of The Bug

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

LogCat

07-02 01:30:09.218 27728 27728 E AndroidRuntime: FATAL EXCEPTION: main

07-02 01:30:09.218 27728 27728 E AndroidRuntime: Process: education.mahmoud.quranyapp, PID: 27728

07-02 01:30:09.218 27728 27728 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setEnabled(boolean)' on a null object reference

07-02 01:30:09.218 27728 27728 E AndroidRuntime: 	at education.mahmoud.quranyapp.feature.listening_activity.ListenFragment$7.onCompletion(Unknown Source)

07-02 01:30:09.218 27728 27728 E AndroidRuntime: 	at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:3717)

07-02 01:30:09.218 27728 27728 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:102)

07-02 01:30:09.218 27728 27728 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:148)

07-02 01:30:09.218 27728 27728 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7325)

07-02 01:30:09.218 27728 27728 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)

07-02 01:30:09.218 27728 27728 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)

07-02 01:30:09.218 27728 27728 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
@MahmoudMabrok
Copy link
Owner

Thanks, I am working to solve it.

@sagorahmed
Copy link
Author

Thank you so much for your feedback. Hopefully, you will fix this issue soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants