mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-06-05 00:00:35 +08:00
CB-9879 getCookies can cause unhandled NullPointerException
Added extra check for CookieManager instance (null pointer on Crosswalk/Android < 4.4) github: close #107
This commit is contained in:
@@ -256,7 +256,7 @@ public class FileTransfer extends CordovaPlugin {
|
||||
} catch (ClassCastException e) {
|
||||
}
|
||||
|
||||
if (!gotCookie) {
|
||||
if (!gotCookie && CookieManager.getInstance() != null) {
|
||||
cookie = CookieManager.getInstance().getCookie(target);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user