Merge "Checking for null proxy object before operating on a method of the proxy object" into tm-qpr-dev

This commit is contained in:
Scott Wiest
2022-10-17 18:23:25 +00:00
committed by Android (Google) Code Review

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) {