Check for empty string in SmartSelection
TextClassifier provides methods for text classification via the ARC container, one of these methods is classifyText(), this method expects (among other params) a text to classify which needs to be non-empty. This CL ensures that the provided text string is not empty before passing it to the container, we already had a check in place but is likely that converting the string could have messed with it. Bug: b/119794258 Test: Build. Change-Id: I155295c283e1f774f152483c8f5f009ded70baa3 Reviewed-on: https://chromium-review.googlesource.com/c/1344196 Commit-Queue: David Jacobo <djacobo@chromium.org> Reviewed-by:Yusuke Sato <yusukes@chromium.org> Reviewed-by:
Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#610919}
Showing
Please register or sign in to comment