diff options
-rw-r--r-- | src/com/android/browser/Controller.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 7216d5e..7512949 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java @@ -1485,8 +1485,10 @@ public class Controller final MenuItem source = menu.findItem(mInLoad ? R.id.stop_menu_id : R.id.reload_menu_id); final MenuItem dest = menu.findItem(R.id.stop_reload_menu_id); - dest.setTitle(source.getTitle()); - dest.setIcon(source.getIcon()); + if (source != null && dest != null) { + dest.setTitle(source.getTitle()); + dest.setIcon(source.getIcon()); + } // decide whether to show the share link option PackageManager pm = mActivity.getPackageManager(); |