offline cats fragment: check if adapter exists on refresh

This commit is contained in:
Andrew Dolgov 2013-06-10 15:12:09 +04:00
parent d889d5e44c
commit 96e91b9c95

View File

@ -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();
}