Commit 58b1f669 authored by Geoffrey Métais's avatar Geoffrey Métais

Prevent NPE

parent b9a1f794
...@@ -3042,10 +3042,11 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C ...@@ -3042,10 +3042,11 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
mHandler.post(new Runnable() { mHandler.post(new Runnable() {
@Override @Override
public void run() { public void run() {
for(String file : mSubtitleSelectedFiles) { if (mService != null)
Log.i(TAG, "Adding user-selected subtitle " + file); for(String file : mSubtitleSelectedFiles) {
mService.addSubtitleTrack(file, true); Log.i(TAG, "Adding user-selected subtitle " + file);
} mService.addSubtitleTrack(file, true);
}
} }
}); });
} }
......
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