Skip to content
Snippets Groups Projects
Commit 19de90f0 authored by stevenjb@chromium.org's avatar stevenjb@chromium.org
Browse files

Crash fix.

BUG=http://code.google.com/p/chromium-os/issues/detail?id=8641
TEST=Disable cellular; enable cellular; activate cellular network. Verify no crash.

Review URL: http://codereview.chromium.org/4374003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64962 0039d316-1c4b-4281-b951-d872f2087c98
parent 822e2947
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment