[Android] Equalizer: quit after exception to avoid NULL dereference
Jean-Baptiste Kempf
git at videolan.org
Sun Apr 13 17:45:03 CEST 2014
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Apr 13 17:39:18 2014 +0200| [c055a336c772a3a18a42f5cf0c169ec6d79ff0b0] | committer: Jean-Baptiste Kempf
Equalizer: quit after exception to avoid NULL dereference
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=c055a336c772a3a18a42f5cf0c169ec6d79ff0b0
---
vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.java
index c5b4c1d..1984744 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/EqualizerFragment.java
@@ -116,6 +116,7 @@ public class EqualizerFragment extends SherlockFragment {
equalizer = new float[bands.length + 1];
} catch (LibVlcException e) {
e.printStackTrace();
+ return;
}
// on/off
More information about the Android
mailing list