Merge "Camera: Null check remote binder interface" into nyc-dev

am: 255490c

* commit '255490c33cd84b03d164a6c6f4f00680d83e057f':
  Camera: Null check remote binder interface

Change-Id: Ic1e76cd3cdb1c9c0bed5e97676f3ae347a732e88
This commit is contained in:
Eino-Ville Talvala
2016-04-06 01:27:47 +00:00
committed by android-build-merger

View File

@@ -55,7 +55,9 @@ public class ICameraDeviceUserWrapper {
}
public void unlinkToDeath(IBinder.DeathRecipient recipient, int flags) {
mRemoteDevice.asBinder().unlinkToDeath(recipient, flags);
if (mRemoteDevice.asBinder() != null) {
mRemoteDevice.asBinder().unlinkToDeath(recipient, flags);
}
}
public void disconnect() {