Quantcast
Channel: Pragmatic Forums | Posts by Nathan Le Ray
Viewing all articles
Browse latest Browse all 13

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

$
0
0

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 all articles
Browse latest Browse all 13

Trending Articles