Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

Commit

Permalink
Fixed a crash with a null pointer object
Browse files Browse the repository at this point in the history
Auditors: @bbondy
  • Loading branch information
SergeyZhukovsky authored and bbondy committed Dec 3, 2015
1 parent e01c42c commit 142eafe
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -967,11 +967,17 @@ public boolean closeTab(TabView tabView, Constant.BubbleAction action, boolean a

// If the tab is already closing, do nothing. Otherwise we could end up in a weird state,
// where we attempt to show multiple prompts and crashing upon tab restore.
if (tabView.mIsClosing == true) {
if (null == tabView || tabView.mIsClosing == true) {
CrashTracking.log("Ignoring duplicate tabView close request");
return false;
}
tabView.mIsClosing = true;
if (null != tabView) {
tabView.mIsClosing = true;
}
else {
CrashTracking.log("attempt to access on null tabView");
return false;
}

boolean contentViewShowing = contentViewShowing();
CrashTracking.log("MainController.closeTab(): action:" + action.toString() + ", contentViewShowing:" + contentViewShowing
Expand Down

0 comments on commit 142eafe

Please sign in to comment.