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

Commit d108b595 authored by Daniel Bright's avatar Daniel Bright
Browse files

Set pdu session id to NOT_SET on exception

Bug: 177387230
Test: telephony tests
Merged-In: I75573a9286110ab3cdea7a6da6f1e92f00c8cca4
Change-Id: I75573a9286110ab3cdea7a6da6f1e92f00c8cca4
parent 611f3f93
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2114,7 +2114,11 @@ public class DataConnection extends StateMachine {
                        loge("EVENT_ALLOCATE_PDU_SESSION_ID: asyncResult is null!");
                    } else {
                        Consumer<Integer> onAllocated = (Consumer<Integer>) asyncResult.userObj;
                        if (asyncResult.result == null) {
                        if (asyncResult.exception != null) {
                            loge("EVENT_ALLOCATE_PDU_SESSION_ID: exception",
                                    asyncResult.exception);
                            onAllocated.accept(PDU_SESSION_ID_NOT_SET);
                        } else if (asyncResult.result == null) {
                            loge("EVENT_ALLOCATE_PDU_SESSION_ID: result null, no id");
                            onAllocated.accept(PDU_SESSION_ID_NOT_SET);
                        } else {