diff --git a/android/sdk/src/main/java/com/tencent/mtt/hippy/adapter/http/DefaultHttpAdapter.java b/android/sdk/src/main/java/com/tencent/mtt/hippy/adapter/http/DefaultHttpAdapter.java index 394a9f54f37..f6dd4b1df4d 100644 --- a/android/sdk/src/main/java/com/tencent/mtt/hippy/adapter/http/DefaultHttpAdapter.java +++ b/android/sdk/src/main/java/com/tencent/mtt/hippy/adapter/http/DefaultHttpAdapter.java @@ -229,10 +229,12 @@ public void destroyIfNeed() { protected void handleRequestCookie(HippyHttpRequest httpRequest) { String url = httpRequest.getUrl(); HippyArray requestCookies = httpRequest.getRequestCookies(); - if (url == null || requestCookies == null) { + if (url == null) { return; } - saveCookie2Manager(url, requestCookies); + if (requestCookies != null) { + saveCookie2Manager(url, requestCookies); + } CookieManager cookieManager = getCookieManager(); if (cookieManager != null) { String cookie = cookieManager.getCookie(url);