[Android] src: Fix NullPointerException in MediaInfoActivity

Edward Wang git at videolan.org
Fri Aug 3 02:16:24 CEST 2012


android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Thu Aug  2 20:15:54 2012 -0400| [9eb9494ed0e4794c355bac200d5bdaf660513664] | committer: Edward Wang

src: Fix NullPointerException in MediaInfoActivity

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=9eb9494ed0e4794c355bac200d5bdaf660513664
---

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoActivity.java
index 168471f..1ac9d00 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/MediaInfoActivity.java
@@ -156,6 +156,8 @@ public class MediaInfoActivity extends ListActivity {
         @Override
         public void handleMessage(Message msg) {
             MediaInfoActivity activity = getOwner();
+            if(activity == null) return;
+
             switch (msg.what) {
                 case NEW_IMAGE:
                     activity.updateImage();



More information about the Android mailing list