Fixed NPE in bookmarks fragment... ugh

This commit is contained in:
Anthony Restaino 2016-02-12 17:31:56 -05:00
parent fd5c26cc52
commit 0ab302775c

View File

@ -141,7 +141,9 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@Override
public void onResume() {
super.onResume();
setBookmarkDataSet(mBookmarkManager.getBookmarksFromFolder(null, true), false);
if (mBookmarkAdapter != null) {
setBookmarkDataSet(mBookmarkManager.getBookmarksFromFolder(null, true), false);
}
}
@Nullable