Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1300349 authored by Marcos Marado's avatar Marcos Marado Committed by Arvin Quilao
Browse files

Avoid NPE

Change-Id: Ib6a44e2f2ee023992ce3539a9aa1b7ed0be9d3ef
parent ab9201c6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (C) 2012 Andrew Neal
 * Copyright (C) 2014 The CyanogenMod Project
 * Copyright (C) 2014-2016 The CyanogenMod Project
 * Licensed under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with the
 * License. You may obtain a copy of the License at
@@ -2500,6 +2500,7 @@ public class MusicPlaybackService extends Service {
     * Temporarily pauses playback.
     */
    public void pause() {
        if (mPlayerHandler == null) return;
        if (D) Log.d(TAG, "Pausing playback");
        synchronized (this) {
            if (mPlayerHandler != null) {