[Android] Thumbnailer: Fix NPE

Jean-Baptiste Kempf git at videolan.org
Fri Jun 12 16:58:51 CEST 2015


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jun 12 15:28:22 2015 +0200| [0244ca490323395693dd3857272eb57932581c7a] | committer: Jean-Baptiste Kempf

Thumbnailer: Fix NPE

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=0244ca490323395693dd3857272eb57932581c7a
---

 vlc-android/src/org/videolan/vlc/Thumbnailer.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/Thumbnailer.java b/vlc-android/src/org/videolan/vlc/Thumbnailer.java
index 7f9fc9b..feb6ca4 100644
--- a/vlc-android/src/org/videolan/vlc/Thumbnailer.java
+++ b/vlc-android/src/org/videolan/vlc/Thumbnailer.java
@@ -211,8 +211,8 @@ public class Thumbnailer implements Runnable {
         if (mVideoBrowser != null && mVideoBrowser.get() != null) {
             mVideoBrowser.get().hideProgressBar();
             mVideoBrowser.get().clearTextInfo();
+            mVideoBrowser.clear();
         }
-        mVideoBrowser.clear();
         Log.d(TAG, "Thumbnailer stopped");
     }
 



More information about the Android mailing list