Skip to content

Commit

Permalink
fix(android): handleRequestCookie error
Browse files Browse the repository at this point in the history
  • Loading branch information
siguangli2018 authored and zoomchan-cxj committed Aug 23, 2022
1 parent 04c8bdc commit 2ff9388
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2ff9388

Please sign in to comment.