don't change cursor if adapter is null
Fixes #2970 Closes #2977 // FREEBIE
This commit is contained in:
parent
a28408b29f
commit
6d2b87d385
1 changed files with 6 additions and 2 deletions
|
@ -283,12 +283,16 @@ public class ConversationFragment extends ListFragment
|
|||
|
||||
@Override
|
||||
public void onLoadFinished(Loader<Cursor> arg0, Cursor cursor) {
|
||||
((CursorAdapter)getListAdapter()).changeCursor(cursor);
|
||||
if (getListAdapter() != null) {
|
||||
((CursorAdapter) getListAdapter()).changeCursor(cursor);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoaderReset(Loader<Cursor> arg0) {
|
||||
((CursorAdapter)getListAdapter()).changeCursor(null);
|
||||
if (getListAdapter() != null) {
|
||||
((CursorAdapter) getListAdapter()).changeCursor(null);
|
||||
}
|
||||
}
|
||||
|
||||
public interface ConversationFragmentListener {
|
||||
|
|
Loading…
Add table
Reference in a new issue