Commit 004fd7c9 authored by Daniel Sonck's avatar Daniel Sonck
Browse files

Fixed Nullpointer exception

parent 13b0653c
......@@ -280,13 +280,15 @@ public class RadioService extends Service implements AudioManager.OnAudioFocusCh
private void stopMusic() {
mPlaying = false;
mRingBuffer.abort();
if(mRingBuffer != null) {
mRingBuffer.abort();
mRingBuffer = null;
}
mAudioPlayer = null;
mRtpReceiver = null;
mRingBuffer = null;
runOnUiThread(new Runnable() {
@Override
public void run() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment