diff options
author | ByteHamster <info@bytehamster.com> | 2022-06-21 19:34:19 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-06-21 19:34:19 +0200 |
commit | 72cd0154806e23b5a55059c73d6431ca11def1b6 (patch) | |
tree | 2b0ad4b65a77266adf0259d0428ce43312db6964 /app | |
parent | a5ff913e2444db9b81218fb548efd84677f7161f (diff) | |
download | AntennaPod-72cd0154806e23b5a55059c73d6431ca11def1b6.zip |
Fix 2 NPEs reported on Google Play
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java index 7902a4988..bca0f8640 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/FeedInfoFragment.java @@ -185,6 +185,9 @@ public class FeedInfoFragment extends Fragment implements Toolbar.OnMenuItemClic @Override public void onConfigurationChanged(@NonNull Configuration newConfig) { super.onConfigurationChanged(newConfig); + if (header == null || infoContainer == null) { + return; + } int horizontalSpacing = (int) getResources().getDimension(R.dimen.additional_horizontal_spacing); header.setPadding(horizontalSpacing, header.getPaddingTop(), horizontalSpacing, header.getPaddingBottom()); infoContainer.setPadding(horizontalSpacing, infoContainer.getPaddingTop(), |