[Android] Fix crash on mPresentation.dismiss()

Jean-Baptiste Kempf git at videolan.org
Wed Apr 2 20:08:48 CEST 2014


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Apr  2 20:08:18 2014 +0200| [78fca1815c6a0939cd4ff97168a6cb91709a6e8f] | committer: Jean-Baptiste Kempf

Fix crash on mPresentation.dismiss()

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 064deaf..5e6e357 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1987,7 +1987,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
                 + "has a presentation display.");
         mLibVLC.pause(); // Stop sending frames to avoid a crash.
         finish(); //TODO restore the video on the new display instead of closing
-        mPresentation.dismiss();
+        if (mPresentation != null) mPresentation.dismiss();
         mPresentation = null;
     }
 



More information about the Android mailing list