Merge "Checking for null proxy object before operating on a method of the proxy object" into tm-qpr-dev am: 5a29df1b74 am: 271121fdd9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20103048

Change-Id: I52b6e4edfc1be93cda1d8631edd7362e9a69b4fa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Scott Wiest
2022-10-17 18:46:26 +00:00
committed by Automerger Merge Worker

View File

@@ -272,6 +272,9 @@ public final class CameraExtensionCharacteristics {
@Override
public void onServiceConnected(ComponentName component, IBinder binder) {
mProxy = ICameraExtensionsProxyService.Stub.asInterface(binder);
if (mProxy == null) {
throw new IllegalStateException("Camera Proxy service is null");
}
try {
mSupportsAdvancedExtensions = mProxy.advancedExtensionsSupported();
} catch (RemoteException e) {