Quantcast
Viewing latest article 12
Browse Latest Browse All 13

NullPointerException in Music.java posted by Nathan Le Ray @ Thu, 24 Feb 2011 21:23:06 +0000

Hi there!

I noticed that in the method play() of the Music class, the call of stop(context) causes an NullPointerExcepion when lauching the app.
Maybe it’s because of the last SDK updated I’ve done yesterday but I fixed it by replacing the call to stop(context) by the following statement : if (mp != null) stop(context);.

I hope it will help ;)

Thanks again for the amazing book!


Viewing latest article 12
Browse Latest Browse All 13

Trending Articles