App Crash, When clicking on "love / likes history" icon more than one click

in #utopian-io6 years ago

Project Infomation

Github : https://github.com/DDihanov/musiQ
Title App : musiQ last.fm scopbbler & free music library app
Publisher App : Dimitar Dihanov

Expected behavior

Supposedly, the app does not stop when logged in on the "History feature" and click the love / likes history icon more than "one click", after playing the video from the streaming site.

Actual behavior

At first I felt strange, suddenly the application crashes when I click the "love / likes history" icon in the "history feature" when I just finished watching the video on the streaming site, Then I chased the error and I found it. the app stops when you enter the "History feature" and click the likes / likes of history more than "one click", after playing the video from the streaming site.

How to reproduce

  • Instal musiQ app and Sign Up account, then login. after successfully logging in, close and exit the app.
  • Go to the streaming site and watch a few minutes of video in it.
  • After playing the video, just open the musiQ app and on "History feature" you can find the history of the video you just watched. then click on "love / likes history icon" more than one click. then the application will crash.

Environment

Device : Redmi Note 5A
System Operating : 7.1.0 Nougat
App Version : 1.860

Record of the issues

Proof of work done

Sumbit in github
Problem Report

Logcat

06-20 23:37:09.484 31503 31503 E AndroidRuntime: Process: com.dihanov.musiq, PID: 31503
06-20 23:37:09.484 31503 31503 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.dihanov.musiq.models.Artist.getName()' on a null object reference
06-20 23:37:09.484 31503 31503 E AndroidRuntime:    at com.dihanov.musiq.ui.detail.ArtistDetails$1.onPostExecute(ArtistDetails.java:161)
06-20 23:37:09.484 31503 31503 E AndroidRuntime:    at com.dihanov.musiq.ui.detail.ArtistDetails$1.onPostExecute(ArtistDetails.java:148)
06-20 23:37:09.484 31503 31503 E AndroidRuntime:    at android.os.AsyncTask.finish(AsyncTask.java:667)
06-20 23:37:09.484 31503 31503 E AndroidRuntime:    at android.os.AsyncTask.-wrap1(AsyncTask.java)
06-20 23:37:09.484 31503 31503 E AndroidRuntime:    at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684)
06-20 23:37:09.484 31503 31503 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)
06-20 23:37:09.484 31503 31503 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:163)
06-20 23:37:09.484 31503 31503 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6361)
06-20 23:37:09.484 31503 31503 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
06-20 23:37:09.484 31503 31503 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
06-20 23:37:09.484 31503 31503 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)```
Sort:  

Hi @rezamusic, thanks for leaving us this report.

This particular bug seem to affect just android version 7.0 . A similar issue was opened a few days go, but the PO thought he had it fixed in the latest release of v 1.860. Apparently, the bug still occurs.

From your log cat, there was an object reference to a method that had no value, in this case getName(). It is to safe due to some error, there was no value parsed to the method.

I hope the PO gets to rectifying it. We look forward to your next contribution.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Thank you mod @fego

Hey @rezamusic
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

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

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.15
TRX 0.16
JST 0.028
BTC 68859.62
ETH 2444.01
USDT 1.00
SBD 2.34