diff --git a/android/java/org/chromium/chrome/browser/bookmarks/BraveBookmarkUtils.java b/android/java/org/chromium/chrome/browser/bookmarks/BraveBookmarkUtils.java index fee6154d6690..f53a2f72c75f 100644 --- a/android/java/org/chromium/chrome/browser/bookmarks/BraveBookmarkUtils.java +++ b/android/java/org/chromium/chrome/browser/bookmarks/BraveBookmarkUtils.java @@ -42,7 +42,6 @@ public static void addOrEditBookmark(@Nullable BookmarkItem existingBookmarkItem snackbarManager.dismissAllSnackbars(); } bookmarkModel.deleteBookmark(existingBookmarkItem.getId()); - bookmarkModel.destroy(); callback.onResult(existingBookmarkItem.getId()); return; } diff --git a/android/java/org/chromium/chrome/browser/toolbar/BraveToolbarManager.java b/android/java/org/chromium/chrome/browser/toolbar/BraveToolbarManager.java index 6d3d6dc80a4a..dfbf894935f3 100644 --- a/android/java/org/chromium/chrome/browser/toolbar/BraveToolbarManager.java +++ b/android/java/org/chromium/chrome/browser/toolbar/BraveToolbarManager.java @@ -326,6 +326,7 @@ protected void onOrientationChange(int newOrientation) { } protected void updateBookmarkButtonStatus() { + if (mBookmarkModelSupplier == null) return; Tab currentTab = mLocationBarModel.getTab(); BookmarkModel bridge = mBookmarkModelSupplier.get(); boolean isBookmarked =