Commit 3cbfb638 authored by Geoffrey Métais's avatar Geoffrey Métais

Prevent NPE in PlaybackSpeedDialog

parent 0f5b1e3d
......@@ -100,7 +100,7 @@ public class PlaybackSpeedDialog extends DialogFragment implements PlaybackServi
private SeekBar.OnSeekBarChangeListener mSeekBarListener = new SeekBar.OnSeekBarChangeListener() {
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
if (mService == null)
if (mService == null || mService.getCurrentMediaWrapper() == null)
return;
if (fromUser) {
float rate = (float) Math.pow(4, ((double) progress / (double) 100) - 1);
......
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