From 88c452c9ae954e40f861a3e616e0693165da2104 Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Mon, 30 May 2011 14:21:03 -0700 Subject: [PATCH] Bug 656708: Channel.URI is undefined. r=philiKON --- services/sync/modules/resource.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/sync/modules/resource.js b/services/sync/modules/resource.js index 3c33d5d8e4bb..8242ae884e87 100644 --- a/services/sync/modules/resource.js +++ b/services/sync/modules/resource.js @@ -545,8 +545,9 @@ ChannelListener.prototype = { this.abortTimer.clear(); let success = Components.isSuccessCode(status); + let uri = channel && channel.URI && channel.URI.spec || ""; this._log.trace("Channel for " + channel.requestMethod + " " + - channel.URI.spec + ": isSuccessCode(" + status + ")? " + + uri + ": isSuccessCode(" + status + ")? " + success); if (this._data == '') @@ -563,7 +564,7 @@ ChannelListener.prototype = { } this._log.trace("Channel: flags = " + channel.loadFlags + - ", URI = " + channel.URI.spec + + ", URI = " + uri + ", HTTP success? " + channel.requestSucceeded); this._onComplete(null, this._data); },