Bug 1157946 - Early return if aResponse.sources is undefined;r=fitzgen

This happens quite often during the damp devtools talos test, when
the toolbox is closed immediately after a page is reloaded
This commit is contained in:
Brian Grinstead 2015-04-25 10:11:16 -07:00
Родитель 11b2ddad6e
Коммит 5b1630e1da
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1222,7 +1222,7 @@ SourceScripts.prototype = {
* Callback for the debugger's active thread getSources() method.
*/
_onSourcesAdded: function(aResponse) {
if (aResponse.error) {
if (aResponse.error || !aResponse.sources) {
let msg = "Error getting sources: " + aResponse.message;
Cu.reportError(msg);
dumpn(msg);