Skip to content
Commit bfdc4775 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Avoid NPE in trimToLengthWithEllipsis().

Currently, the text paramter is annotated with @Nullable
but passing a null value will cause an NPE.

Test: atest core/tests/coretests/src/android/text/TextUtilsTest.java
Change-Id: I95a71246aa0fe3398f09cb9b4b037ca096900ad4
parent 58686805
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