From 96e91b9c95bcb5975d09bc1a2f7dc27fc30a56b5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 10 Jun 2013 15:12:09 +0400 Subject: [PATCH] offline cats fragment: check if adapter exists on refresh --- src/org/fox/ttrss/offline/OfflineFeedCategoriesFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/fox/ttrss/offline/OfflineFeedCategoriesFragment.java b/src/org/fox/ttrss/offline/OfflineFeedCategoriesFragment.java index 426cda0d..ad229919 100644 --- a/src/org/fox/ttrss/offline/OfflineFeedCategoriesFragment.java +++ b/src/org/fox/ttrss/offline/OfflineFeedCategoriesFragment.java @@ -70,7 +70,7 @@ public class OfflineFeedCategoriesFragment extends Fragment implements OnItemCli m_cursor = createCursor(); - if (m_cursor != null) { + if (m_cursor != null && m_adapter != null) { m_adapter.changeCursor(m_cursor); m_adapter.notifyDataSetChanged(); }