From 26c16530adc2ad57b7959b9a71f5e94aa70cbc25 Mon Sep 17 00:00:00 2001 From: Anthony Restaino Date: Sat, 16 Aug 2014 15:51:48 -0400 Subject: [PATCH] Fixed crash when deleting blank tab --- src/acr/browser/lightning/BrowserActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acr/browser/lightning/BrowserActivity.java b/src/acr/browser/lightning/BrowserActivity.java index ef9f20f..d1b83a4 100644 --- a/src/acr/browser/lightning/BrowserActivity.java +++ b/src/acr/browser/lightning/BrowserActivity.java @@ -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 {