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

Commit 97480564 authored by lijilou's avatar lijilou Committed by Automerger Merge Worker
Browse files

Telecom:fix NPE problem to avoid telecom process crash. am: baccd54a

parents ef242089 baccd54a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -498,8 +498,12 @@ public class CallsManager extends Call.ListenerBase
                @Override
                public void releaseConnectionService(
                        ConnectionServiceFocusManager.ConnectionServiceFocus connectionService) {
                    if (connectionService == null) {
                        Log.i(this, "releaseConnectionService: connectionService is null");
                        return;
                    }
                    mCalls.stream()
                            .filter(c -> c.getConnectionServiceWrapper().equals(connectionService))
                            .filter(c -> connectionService.equals(c.getConnectionServiceWrapper()))
                            .forEach(c -> c.disconnect("release " +
                                    connectionService.getComponentName().getPackageName()));
                }