Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3203)

Unified Diff: chrome/browser/ui/webui/net_internals/net_internals_ui.cc

Issue 9860044: Coverity: check null returns. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/net_internals/net_internals_ui.cc
diff --git a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
index 1787dd84a65e6a290341a01c150cb3747a59a023..5ecc2d2cdaa946e6a959e307271ba251509e733e 100644
--- a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
+++ b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
@@ -1269,9 +1269,12 @@ void NetInternalsMessageHandler::IOThreadImpl::OnGetHttpPipeliningStatus(
net::HttpNetworkSession* http_network_session =
GetHttpNetworkSession(context_getter_->GetURLRequestContext());
- Value* pipelined_conneciton_info =
- http_network_session->http_stream_factory()->PipelineInfoToValue();
- status_dict->Set("pipelined_connection_info", pipelined_conneciton_info);
+ Value* pipelined_connection_info = NULL;
+ if (http_network_session) {
+ pipelined_connection_info =
+ http_network_session->http_stream_factory()->PipelineInfoToValue();
+ }
+ status_dict->Set("pipelined_connection_info", pipelined_connection_info);
const net::HttpServerProperties& http_server_properties =
*context_getter_->GetURLRequestContext()->http_server_properties();
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698