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

Commit 1a8b2e93 authored by Junyeong Bak's avatar Junyeong Bak
Browse files

Modified not to occur NPE when handle call of failed connection



Modified not to occur system crash by checking whether call which is matched with the call ID is null or not.

Bug: 186181672
Test: Occured when call of failed connection is null.

Signed-off-by: default avatarJunyeong Bak <junyeong.bak@samsung.com>
Change-Id: I50f797d9851ebb9c3df4377af59a687c759bc200
parent d4d38d5e
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1994,11 +1994,11 @@ public class ConnectionServiceWrapper extends ServiceBinder implements
            // failure to connect; we handle all failures uniformly
            Call foundCall = mCallIdMapper.getCall(callId);

            if (foundCall != null) {
                if (connection.getConnectTimeMillis() != 0) {
                    foundCall.setConnectTimeMillis(connection.getConnectTimeMillis());
                }

            if (foundCall != null) {
                // The post-dial digits are created when the call is first created.  Normally
                // the ConnectionService is responsible for stripping them from the address, but
                // since a failed connection will not have done this, we could end up with duplicate