commit | c78a0c17337bcd9dcaa38d61db992ced35eaf1f2 | [log] [tgz] |
---|---|---|
author | Dan Albert <danalbert@google.com> | Tue Sep 23 09:51:51 2014 -0700 |
committer | Dan Albert <danalbert@google.com> | Tue Sep 23 09:51:51 2014 -0700 |
tree | 3fd8f9132b755ce86fd67ed8043a13bc0c227032 | |
parent | e1e3d278549eb6389eb0b5fa3f13a4ac079a55a2 [diff] |
Fix a null dereference. Change-Id: I7224c3368ff414620062bc08b80a6a94d55d7931
diff --git a/libs/gui/ISurfaceComposerClient.cpp b/libs/gui/ISurfaceComposerClient.cpp index 1adc134..60e25c1 100644 --- a/libs/gui/ISurfaceComposerClient.cpp +++ b/libs/gui/ISurfaceComposerClient.cpp
@@ -95,7 +95,7 @@ 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;