create account

SimpleMp3 Player v1.2.7 crashed when the previous button was pressed and the track was played from playlist menu. by kodeblacc

View this thread on: hive.blogpeakd.comecency.com
· @kodeblacc ·
$35.10
SimpleMp3 Player v1.2.7 crashed when the previous button was pressed and the track was played from playlist menu.
Project Information
Repository: https://github.com/its-wufu/SimpleMp3Player/
Project Name: Simple Mp3 player

#### Expected behavior
The previous button of a music player plays the previous song on a queue. This function should work properly from any menu on the music play so far the button is available
#### Actual behavior
After creating a playlist and playing a song from the playlist menu, pressing the previous button caused the music player to crash.
#### How to reproduce
- Launch the [app](https://play.google.com/store/apps/details?id=saigokyo.simplemp3player&hl=en)
- Add song to playlist
- Play a song from playlist menu 
- Press the the previous button

#### Test Enviroment
* Software version: v 1.2.7
* Device: Tecno Camon CM
* Operating system: Android 7.0

#### Recording of the bug
https://youtu.be/CYh3xFODkNU


#### Logcat 

```
FATAL EXCEPTION: main
Process: saigokyo.simplemp3player, PID: 21323
java.lang.ArrayIndexOutOfBoundsException: length=10; index=-1
	at java.util.ArrayList.get(ArrayList.java:413)
	at saigokyo.simplemp3player.Main.prevSong(Main.java:993)
	at saigokyo.simplemp3player.Main$4.onClick(Main.java:338)
	at android.view.View.performClick(View.java:6076)
	at android.view.View$PerformClick.run(View.java:23138)
	at android.os.Handler.handleCallback(Handler.java:836)
	at android.os.Handler.dispatchMessage(Handler.java:103)
	at android.os.Looper.loop(Looper.java:203)
	at android.app.ActivityThread.main(ActivityThread.java:6292)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
```

#### Proof of Work Done
This is the link to my [github account](https://github.com/kodeblacc)
πŸ‘  , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorkodeblacc
permlinksimplemp3-player-v1-2-7-crashed-when-the-previous-button-was-pressed-and-the-track-was-played-from-playlist-menu
categoryutopian-io
json_metadata{"tags":["utopian-io","bug-hunting","stach","wafrica","opensource"],"image":["https://img.youtube.com/vi/CYh3xFODkNU/0.jpg"],"links":["https://github.com/its-wufu/SimpleMp3Player/","https://play.google.com/store/apps/details?id=saigokyo.simplemp3player&hl=en","https://youtu.be/CYh3xFODkNU","https://github.com/kodeblacc"],"app":"steemit/0.1","format":"markdown"}
created2018-05-27 18:27:33
last_update2018-05-27 18:27:33
depth0
children3
last_payout2018-06-03 18:27:33
cashout_time1969-12-31 23:59:59
total_payout_value26.568 HBD
curator_payout_value8.530 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,769
author_reputation13,597,344,845,816
root_title"SimpleMp3 Player v1.2.7 crashed when the previous button was pressed and the track was played from playlist menu."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id57,986,142
net_rshares8,925,199,425,063
author_curate_reward""
vote details (21)
@knowledges ·
$0.05
Hello @kodeblacc, thank you for this contribution. I was able to verify this behavior on my device as well (7.0).

Should in case the PO needs more details, please do well to provide them. Thank you 

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/2131223).

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  
properties (23)
authorknowledges
permlinkre-kodeblacc-simplemp3-player-v1-2-7-crashed-when-the-previous-button-was-pressed-and-the-track-was-played-from-playlist-menu-20180528t201933253z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["kodeblacc"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/5/2131223","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2018-05-28 20:19:36
last_update2018-05-28 20:19:36
depth1
children0
last_payout2018-06-04 20:19:36
cashout_time1969-12-31 23:59:59
total_payout_value0.051 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length690
author_reputation98,021,227,622,369
root_title"SimpleMp3 Player v1.2.7 crashed when the previous button was pressed and the track was played from playlist menu."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id58,167,109
net_rshares13,062,959,515
author_curate_reward""
vote details (1)
@steemitboard ·
Congratulations @kodeblacc! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/comments.png)](http://steemitboard.com/@kodeblacc) Award for the number of comments

Click on any badge to view your Board of Honor.

To support your work, I also upvoted your post!
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

**Do not miss the [last announcement](https://steemit.com/steemitboard/@steemitboard/steemitboard-new-level-notifications) from @steemitboard!**

> Do you like **SteemitBoard**'s project? **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-kodeblacc-20180527t203851000z
categoryutopian-io
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2018-05-27 20:38:51
last_update2018-05-27 20:38:51
depth1
children0
last_payout2018-06-03 20:38:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length886
author_reputation38,975,615,169,260
root_title"SimpleMp3 Player v1.2.7 crashed when the previous button was pressed and the track was played from playlist menu."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id58,002,179
net_rshares0
@utopian-io ·
Hey @kodeblacc
**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Contributing on Utopian**
Learn how to contribute on <a href='https://join.utopian.io'>our website</a> or by watching <a href='https://www.youtube.com/watch?v=8S1AtrzYY1Q'>this tutorial</a> on Youtube.

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

<a href='https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlinkre-simplemp3-player-v1-2-7-crashed-when-the-previous-button-was-pressed-and-the-track-was-played-from-playlist-menu-20180528t202509z
categoryutopian-io
json_metadata"{"app": "beem/0.19.29"}"
created2018-05-28 20:25:09
last_update2018-05-28 20:25:09
depth1
children0
last_payout2018-06-04 20:25:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length506
author_reputation152,955,367,999,756
root_title"SimpleMp3 Player v1.2.7 crashed when the previous button was pressed and the track was played from playlist menu."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id58,167,751
net_rshares0