Index: chromeos/network/network_state.cc |
diff --git a/chromeos/network/network_state.cc b/chromeos/network/network_state.cc |
index e6f344db80fc7ecae5536cc596e735d8eb0be789..eb598f0d750ba15955563998aa4420fccd68f7cf 100644 |
--- a/chromeos/network/network_state.cc |
+++ b/chromeos/network/network_state.cc |
@@ -158,7 +158,13 @@ bool NetworkState::PropertyChanged(const std::string& key, |
bool NetworkState::InitialPropertiesReceived( |
const base::DictionaryValue& properties) { |
NET_LOG_DEBUG("InitialPropertiesReceived", path()); |
- bool changed = UpdateName(properties); |
+ bool changed = false; |
+ if (!properties.HasKey(shill::kTypeProperty)) { |
+ NET_LOG_ERROR("NetworkState has no type", |
+ shill_property_util::GetNetworkIdFromProperties(properties)); |
+ } else { |
+ changed |= UpdateName(properties); |
+ } |
bool had_ca_cert_nss = has_ca_cert_nss_; |
has_ca_cert_nss_ = IsCaCertNssSet(properties); |
changed |= had_ca_cert_nss != has_ca_cert_nss_; |