Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
Fixed crash when deleting a blank tab
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonycr committed Aug 16, 2014
1 parent ccd23b3 commit bb5d3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acr/browser/thunder/BrowserActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,7 @@ public synchronized void deleteTab(int id) {
mWebViewList.remove(position);
mIdList.remove(position);
} else {
if (mCurrentView.getUrl().startsWith(Constants.FILE)
if (mCurrentView.getUrl() == null || mCurrentView.getUrl().startsWith(Constants.FILE)
|| mCurrentView.getUrl().equals(mHomepage)) {
closeActivity();
} else {
Expand Down

0 comments on commit bb5d3fc

Please sign in to comment.