Browse Source

Fixed NPE in bookmarks fragment... ugh

master
Anthony Restaino 9 years ago
parent
commit
0ab302775c
  1. 4
      app/src/main/java/acr/browser/lightning/fragment/BookmarksFragment.java

4
app/src/main/java/acr/browser/lightning/fragment/BookmarksFragment.java

@ -141,7 +141,9 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener, @@ -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

Loading…
Cancel
Save