am 56b3f887: am 6ee97e74: Merge "Fix a null dereference."

* commit '56b3f887a2a859eaac9f3c3eb2fa18eb5bf396da':
  Fix a null dereference.
This commit is contained in:
Dan Albert 2014-09-23 20:55:50 +00:00 committed by Android Git Automerger
commit 5193aea69a
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ status_t BnSurfaceComposerClient::onTransact(
status_t result = createSurface(name, w, h, format, flags,
&handle, &gbp);
reply->writeStrongBinder(handle);
reply->writeStrongBinder(gbp->asBinder());
reply->writeStrongBinder(gbp != NULL ? gbp->asBinder() : NULL);
reply->writeInt32(result);
return NO_ERROR;
} break;