| Index: chromeos/network/onc/onc_translator_onc_to_shill.cc
|
| diff --git a/chromeos/network/onc/onc_translator_onc_to_shill.cc b/chromeos/network/onc/onc_translator_onc_to_shill.cc
|
| index 194be93939d9b7341604142937c8652ef0660154..fbfe16ecaa5d0cc328114ca36da8e992b4919066 100644
|
| --- a/chromeos/network/onc/onc_translator_onc_to_shill.cc
|
| +++ b/chromeos/network/onc/onc_translator_onc_to_shill.cc
|
| @@ -198,9 +198,11 @@ void LocalTranslator::TranslateVPN() {
|
|
|
| void LocalTranslator::TranslateWiFi() {
|
| std::string security;
|
| - onc_object_->GetStringWithoutPathExpansion(::onc::wifi::kSecurity, &security);
|
| - TranslateWithTableAndSet(security, kWiFiSecurityTable,
|
| - shill::kSecurityProperty);
|
| + if (onc_object_->GetStringWithoutPathExpansion(
|
| + ::onc::wifi::kSecurity, &security)) {
|
| + TranslateWithTableAndSet(security, kWiFiSecurityTable,
|
| + shill::kSecurityProperty);
|
| + }
|
|
|
| std::string ssid;
|
| onc_object_->GetStringWithoutPathExpansion(::onc::wifi::kSSID, &ssid);
|
| @@ -336,7 +338,7 @@ void LocalTranslator::TranslateWithTableAndSet(
|
| // occurs, we should check here. Otherwise the failure will only show up much
|
| // later in Shill.
|
| LOG(ERROR) << "Value '" << onc_value
|
| - << "' cannot be translated to Shill property "
|
| + << "' cannot be translated to Shill property: "
|
| << shill_property_name;
|
| }
|
|
|
|
|