Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9deb753f authored by Scott Wiest's avatar Scott Wiest
Browse files

Checking for null proxy object before operating on a method of the proxy

object

Test: Compiled code

Bug: 242767826

Change-Id: I47e705902220e690ea8b560b051fc446a6ec2955
parent 56dcd864
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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) {