[Android] Prevent NPE
Geoffrey Métais
git at videolan.org
Thu Jun 7 11:44:38 CEST 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jun 7 11:40:23 2018 +0200| [4d25fb9f07aef01df68dfa777177d464019067dd] | committer: Geoffrey Métais
Prevent NPE
Showing info activity with music playing could lead to a crash
> https://code.videolan.org/videolan/vlc-android/commit/4d25fb9f07aef01df68dfa777177d464019067dd
---
vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java b/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
index 84f680c80..bc97bcb3b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.java
@@ -307,6 +307,7 @@ public class AudioPlayerContainerActivity extends BaseActivity {
}
protected void updateContainerPadding(boolean show) {
+ if (mFragmentContainer == null) return;
int factor = show ? 1 : 0;
mFragmentContainer.setPadding(mFragmentContainer.getPaddingLeft(),
mFragmentContainer.getPaddingTop(), mFragmentContainer.getPaddingRight(),
More information about the Android
mailing list