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

Skip to content
Commit c0869621 authored by Hwangoo Park's avatar Hwangoo Park
Browse files

Fix null pointer exception when sending SMS at short intervals

The null pointer exception was observed when sending consecutive SMS
messages at short intervals by the race condition between the
finishDomainSelection and requestDomainSelection in
SmsDispatchersController. To protect against this null pointer
exception, the requestDomainSelection which is working on the execution
flow of SmsDispatchersController is responsible for creating a
DomainSelectionConnection and the fallback to the legacy implementation
is also modified to be handled in this creation logic.
This ensures that finishDomainSelection and requestDomainSelection are
processed synchronously.

Bug: 317070933
Test: atest SmsDispatchersControllerTest
Test: manual (verified short/long SMS/Emergency SMS when domain
selection enabled - b/339313390#comment6, b/339313390#comment8)
Test: manual (verified multiple SMS/Emergency SMS (100 times) -
b/339313390#comment10 ~ comment13)

Change-Id: Idfa1a607043ed84ed8a03171ccf5f040967cb6ed
parent 2316a64b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment