From 98828e8b5411397112af33fb50c1d8af7e248b1c Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Thu, 16 Feb 2012 14:32:03 +0100 Subject: [PATCH] Prevent crash in RSS screen when moving away. --- android/src/org/transdroid/gui/rss/RssListingFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android/src/org/transdroid/gui/rss/RssListingFragment.java b/android/src/org/transdroid/gui/rss/RssListingFragment.java index 86a44adc..9c870836 100644 --- a/android/src/org/transdroid/gui/rss/RssListingFragment.java +++ b/android/src/org/transdroid/gui/rss/RssListingFragment.java @@ -501,7 +501,9 @@ public class RssListingFragment extends Fragment implements OnTouchListener, OnS private void setProgressBar(boolean b) { inProgress = b; - getSupportActivity().invalidateOptionsMenu(); + if (getSupportActivity() != null) { + getSupportActivity().invalidateOptionsMenu(); + } } /*@Override