diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index 5d4dece5..1ac736e2 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -1031,10 +1031,14 @@ public class MainActivity extends CommonActivity implements OnlineServices { if (m_activeFeed.is_cat) { FeedCategoriesFragment cats = (FeedCategoriesFragment) getSupportFragmentManager().findFragmentByTag(FRAG_CATS); - cats.setSelectedCategory(null); + if (cats != null) { + cats.setSelectedCategory(null); + } } else { FeedsFragment feeds = (FeedsFragment) getSupportFragmentManager().findFragmentByTag(FRAG_FEEDS); - feeds.setSelectedFeed(null); + if (feeds != null) { + feeds.setSelectedFeed(null); + } } m_activeFeed = null;