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

Skip to content
Commit 5f5b7e9d authored by Sukanya Rajkhowa's avatar Sukanya Rajkhowa Committed by Linux Build Service Account
Browse files

Fix CdmsSmsTests and NPE in CdmaSmsAddress parsing

When CdmaSmsAddress parse fails to encode in 4bit, it tries in 8
bit char. Previous call to filterNumericSugar could have nullified
the filtered address causing NPE. Fix issue by calling
filterWhiteSpace(address) only when filteredAddr is null. When
filteredAddr is not null, it would already have been removed of
any whitespaces and need not call filteredWhitespace() again. This
change also fixes test values causing failures of CdmaSmsTest

Change-Id: Ia1ce0c54b5482540da8b94e86c2be4b24b3cb9e9
CRs-Fixed: 389695
(cherry picked from commit f9f62386be5693336cb3bea5d4b08e1a21fc52bb)
parent a11b2279
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