From c53e52b9410f3ccb3afd6d6fd1c2aa3e5f108077 Mon Sep 17 00:00:00 2001 From: Hitesh Sondhi Date: Tue, 7 Oct 2014 18:57:18 +0530 Subject: [PATCH] null check process to avoid NPE --- .../src/main/java/com/github/hiteshsondhi88/libffmpeg/Util.java | 1 + 1 file changed, 1 insertion(+) diff --git a/FFmpegAndroid/src/main/java/com/github/hiteshsondhi88/libffmpeg/Util.java b/FFmpegAndroid/src/main/java/com/github/hiteshsondhi88/libffmpeg/Util.java index e4570ff..378a863 100644 --- a/FFmpegAndroid/src/main/java/com/github/hiteshsondhi88/libffmpeg/Util.java +++ b/FFmpegAndroid/src/main/java/com/github/hiteshsondhi88/libffmpeg/Util.java @@ -63,6 +63,7 @@ static boolean killAsync(AsyncTask asyncTask) { static boolean isProcessCompleted(Process process) { try { + if (process == null) return true; process.exitValue(); return true; } catch (IllegalThreadStateException e) {