diff options
Diffstat (limited to 'camera')
-rw-r--r-- | camera/ICamera.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/ICamera.cpp b/camera/ICamera.cpp index 8c6e1f7..ca31c65 100644 --- a/camera/ICamera.cpp +++ b/camera/ICamera.cpp @@ -75,7 +75,7 @@ public: ALOGV("setPreviewTarget"); Parcel data, reply; data.writeInterfaceToken(ICamera::getInterfaceDescriptor()); - sp<IBinder> b(bufferProducer->asBinder()); + sp<IBinder> b(bufferProducer != NULL ? bufferProducer->asBinder() : NULL); data.writeStrongBinder(b); remote()->transact(SET_PREVIEW_TARGET, data, &reply); return reply.readInt32(); |