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

Commit dffb9c08 authored by Arthur Ishiguro's avatar Arthur Ishiguro
Browse files

Add additional exception handling in endpoint callback registration

Bug: 378487799
Flag: android.chre.flags.offload_api
Test: Run on device, verify no crash
Change-Id: I4074a55613dbf2dbeef81dabeb77bc7da5dbe46c
parent eede68f1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -527,8 +527,8 @@ public class ContextHubService extends IContextHubService.Stub {
        try {
            mContextHubWrapper.registerEndpointCallback(
                    new ContextHubHalEndpointCallback(mHubInfoRegistry));
        } catch (RemoteException e) {
            Log.e(TAG, "RemoteException while registering IEndpointCallback", e);
        } catch (RemoteException | UnsupportedOperationException e) {
            Log.e(TAG, "Exception while registering IEndpointCallback", e);
        }
    }