Bug 906650 - caldav calendar sync failing with aUri is null. r=philipp
This commit is contained in:
Родитель
ca57ff4b6f
Коммит
b05c95d9df
|
@ -325,7 +325,7 @@ calDavCalendar.prototype = {
|
|||
|
||||
// Google does its CalDAV v2 authentication via OAuth. Since there is
|
||||
// no builtin OAuth support, we have to inject the tokens here.
|
||||
if (aUri.host == "apidata.googleusercontent.com" &&
|
||||
if (aUri && aUri.host == "apidata.googleusercontent.com" &&
|
||||
this.oauth && this.oauth.accessToken) {
|
||||
let hdr = "Bearer " + this.oauth.accessToken;
|
||||
channel.setRequestHeader("Authorization", hdr, false);
|
||||
|
|
Загрузка…
Ссылка в новой задаче