Web Inspector: ResourceContentView.js incorrectly contains call to WebInspector.UIStr...
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / SourceCodeTextEditor.js
index 9268d5b0116d553a6d11cee5d0aea7b2b96c03b6..6965f8fcf9cc7f6f351c50efd27a0a09622ee800 100644 (file)
@@ -510,6 +510,10 @@ WebInspector.SourceCodeTextEditor.prototype = {
 
     _contentAvailable: function(parameters)
     {
+        // Return if resource is not available.
+        if (parameters.error)
+            return;
+
         var sourceCode = parameters.sourceCode;
         var content = parameters.content;
         var base64Encoded = parameters.base64Encoded;