[Android] Prevent NPE
Geoffrey Métais
git at videolan.org
Tue Feb 21 09:59:01 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 21 09:50:02 2017 +0100| [a8fbc86ca4da318f19c57521313c3fefd62516e5] | committer: Geoffrey Métais
Prevent NPE
> https://code.videolan.org/videolan/vlc-android/commit/a8fbc86ca4da318f19c57521313c3fefd62516e5
---
vlc-android/src/org/videolan/vlc/VLCApplication.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/VLCApplication.java b/vlc-android/src/org/videolan/vlc/VLCApplication.java
index 7b8608b..aefea66 100644
--- a/vlc-android/src/org/videolan/vlc/VLCApplication.java
+++ b/vlc-android/src/org/videolan/vlc/VLCApplication.java
@@ -222,7 +222,8 @@ public class VLCApplication extends Application {
@Override
public void onCanceled(Dialog dialog) {
- ((DialogFragment)dialog.getContext()).dismiss();
+ if (dialog != null)
+ ((DialogFragment)dialog.getContext()).dismiss();
}
@Override
More information about the Android
mailing list