Fixed crash when deleting blank tab

This commit is contained in:
Anthony Restaino 2014-08-16 15:51:48 -04:00
parent 9f3107c486
commit 26c16530ad

View File

@ -1065,7 +1065,7 @@ public class BrowserActivity extends Activity implements BrowserController {
reference.onDestroy();
} else {
if (mCurrentView.getUrl().startsWith(Constants.FILE)
if (mCurrentView.getUrl() == null || mCurrentView.getUrl().startsWith(Constants.FILE)
|| mCurrentView.getUrl().equals(mHomepage)) {
closeActivity();
} else {