Fix a null dereference.

Change-Id: I7224c3368ff414620062bc08b80a6a94d55d7931
This commit is contained in:
Dan Albert 2014-09-23 09:51:51 -07:00
parent e1e3d27854
commit c78a0c1733
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,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;