From f84d829732b8e0b34c07c5e82c7bd875c0a7540e Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Sat, 1 Aug 2020 21:31:32 -0400 Subject: [PATCH] oh no i have done it again --- app/src/main/java/awais/instagrabber/activities/Login.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/activities/Login.java b/app/src/main/java/awais/instagrabber/activities/Login.java index 6d5b6e00..eb5456c7 100755 --- a/app/src/main/java/awais/instagrabber/activities/Login.java +++ b/app/src/main/java/awais/instagrabber/activities/Login.java @@ -33,7 +33,7 @@ public final class Login extends BaseLanguageActivity implements View.OnClickLis public void onPageFinished(final WebView view, final String url) { webViewUrl = url; final String mainCookie = Utils.getCookie(url); - if (!mainCookie.contains("; ds_user_id=")) ready = true; + if (Utils.isEmpty(mainCookie) || !mainCookie.contains("; ds_user_id=")) ready = true; else if (mainCookie.contains("; ds_user_id=") && ready) { Utils.setupCookies(mainCookie); settingsHelper.putString(Constants.COOKIE, mainCookie);