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

Unified Diff: chrome/browser/chromeos/status/network_menu.cc

Issue 4374003: Crash fix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/status/network_menu.cc
diff --git a/chrome/browser/chromeos/status/network_menu.cc b/chrome/browser/chromeos/status/network_menu.cc
index f8b11de2ef1fa4f03e4c8676e94ccee0d1e80a22..70107ab78229e0548fdf00cf8908c18182fce208 100644
--- a/chrome/browser/chromeos/status/network_menu.cc
+++ b/chrome/browser/chromeos/status/network_menu.cc
@@ -329,8 +329,9 @@ void NetworkMenu::ActivatedAt(int index) {
// TODO(stevenjb): Show notification.
} else if (cellular->activation_state() != ACTIVATION_STATE_ACTIVATED) {
ActivateCellular(cellular);
- } else if (cellular->service_path() ==
- cros->cellular_network()->service_path()) {
+ } else if (cros->cellular_network() &&
+ (cellular->service_path() ==
+ cros->cellular_network()->service_path())) {
// Show the config settings for the cellular network.
ShowCellular(cellular, false);
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698