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)
Loading
Please register or sign in to comment