[Android] Fix preferences crashes introduced by the new selector for Mnt
Jean-Baptiste Kempf
git at videolan.org
Wed Oct 31 18:33:19 CET 2012
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Oct 31 18:32:51 2012 +0100| [1e840f240797e07826ac5e366c0335eb1ae5762c] | committer: Jean-Baptiste Kempf
Fix preferences crashes introduced by the new selector for Mnt
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=1e840f240797e07826ac5e366c0335eb1ae5762c
---
vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
index 63f9f98..33fe473 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
@@ -152,7 +152,7 @@ public class PreferencesActivity extends PreferenceActivity {
int radioButtonID = radiogroup.getCheckedRadioButtonId();
RadioButton radioButton = (RadioButton)radiogroup.findViewById(radioButtonID);
- if(radioButton.getTag().equals("other")) {
+ if(radioButton != null && radioButton.getTag().equals("other")) {
TextView other_path = (TextView)dialog.findViewById(R.id.other_path);
newRoot = other_path.getText().toString();
} else {
More information about the Android
mailing list