Skip to content

Commit

Permalink
dbus: Fix a crash in UpdateEngineClientImpl::OnGetStatusError()
Browse files Browse the repository at this point in the history
|error| can be NULL if the response is not received.

BUG=316986
TEST=none

Review URL: https://codereview.chromium.org/68533009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234474 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
satorux@chromium.org committed Nov 12, 2013
1 parent ae743e4 commit e6f9c69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chromeos/dbus/update_engine_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ class UpdateEngineClientImpl : public UpdateEngineClient {

// Called when GetStatus call failed.
void OnGetStatusError(dbus::ErrorResponse* error) {
LOG(ERROR) << "GetStatus request failed with error: " << error->ToString();
LOG(ERROR) << "GetStatus request failed with error: "
<< (error ? error->ToString() : "");
}

// Called when a response for SetReleaseChannel() is received.
Expand Down

0 comments on commit e6f9c69

Please sign in to comment.