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

Prevent NPE

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