Index: chrome/browser/local_discovery/privet_notifications.cc |
diff --git a/chrome/browser/local_discovery/privet_notifications.cc b/chrome/browser/local_discovery/privet_notifications.cc |
index 4791199430d1b67e665630310a099c35b26387bb..5a009cc0b0a6fcbe48f0cad1a875c52c23377225 100644 |
--- a/chrome/browser/local_discovery/privet_notifications.cc |
+++ b/chrome/browser/local_discovery/privet_notifications.cc |
@@ -117,6 +117,11 @@ void PrivetNotificationsListener::DeviceChanged( |
void PrivetNotificationsListener::CreateInfoOperation( |
scoped_ptr<PrivetHTTPClient> http_client) { |
+ if (!http_client) { |
+ // Do nothing if resolution fails. |
+ return; |
+ } |
+ |
std::string name = http_client->GetName(); |
DeviceContextMap::iterator device_iter = devices_seen_.find(name); |
DCHECK(device_iter != devices_seen_.end()); |