Skip to content

Commit c53e52b

Browse files
null check process to avoid NPE
1 parent 2792080 commit c53e52b

File tree

1 file changed

+1
-0
lines changed
  • FFmpegAndroid/src/main/java/com/github/hiteshsondhi88/libffmpeg

1 file changed

+1
-0
lines changed

FFmpegAndroid/src/main/java/com/github/hiteshsondhi88/libffmpeg/Util.java

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ static boolean killAsync(AsyncTask asyncTask) {
6363

6464
static boolean isProcessCompleted(Process process) {
6565
try {
66+
if (process == null) return true;
6667
process.exitValue();
6768
return true;
6869
} catch (IllegalThreadStateException e) {

0 commit comments

Comments
 (0)