Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / devtools / front_end / network / RequestPreviewView.js
index e429b53..7281826 100644 (file)
@@ -76,11 +76,13 @@ WebInspector.RequestPreviewView.prototype = {
         return new WebInspector.EmptyView(message);
     },
 
+    /**
+     * @return {?WebInspector.RequestJSONView}
+     */
     _jsonView: function()
     {
-        var parsedJSON = WebInspector.RequestJSONView.parseJSON(this.request.content);
-        if (parsedJSON)
-            return new WebInspector.RequestJSONView(this.request, parsedJSON);
+        var parsedJSON = WebInspector.RequestJSONView.parseJSON(this.request.content || "");
+        return parsedJSON ? new WebInspector.RequestJSONView(this.request, parsedJSON) : null;
     },
 
     /**