diff --git a/devtools/client/framework/source-map-url-service.js b/devtools/client/framework/source-map-url-service.js index 394255b01542..2daafd8f628f 100644 --- a/devtools/client/framework/source-map-url-service.js +++ b/devtools/client/framework/source-map-url-service.js @@ -73,6 +73,11 @@ SourceMapURLService.prototype.destroy = function () { * A helper function that is called when a new source is available. */ SourceMapURLService.prototype._onSourceUpdated = function (_, sourceEvent) { + // Maybe we were shut down while waiting. + if (!this._urls) { + return; + } + let { source } = sourceEvent; let { generatedUrl, url, actor: id, sourceMapURL } = source;