You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ky...@apache.org on 2019/01/16 08:58:36 UTC
[incubator-weex] branch master updated: * [Android] Fix NEP of
WXTextView#getText() (#2051)
This is an automated email from the ASF dual-hosted git repository.
kyork pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git
The following commit(s) were added to refs/heads/master by this push:
new da4e7aa * [Android] Fix NEP of WXTextView#getText() (#2051)
da4e7aa is described below
commit da4e7aa6dd17071908c8a79a7e5385b478502810
Author: wangguanquan <gu...@yandex.com>
AuthorDate: Wed Jan 16 16:58:30 2019 +0800
* [Android] Fix NEP of WXTextView#getText() (#2051)
---
android/sdk/src/main/java/com/taobao/weex/ui/view/WXTextView.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/android/sdk/src/main/java/com/taobao/weex/ui/view/WXTextView.java b/android/sdk/src/main/java/com/taobao/weex/ui/view/WXTextView.java
index f61adf1..314123c 100644
--- a/android/sdk/src/main/java/com/taobao/weex/ui/view/WXTextView.java
+++ b/android/sdk/src/main/java/com/taobao/weex/ui/view/WXTextView.java
@@ -86,7 +86,7 @@ public class WXTextView extends View implements WXGestureObservable, IWXTextView
@Override
public CharSequence getText() {
- return textLayout.getText();
+ return textLayout != null ? textLayout.getText() : null;
}
public Layout getTextLayout() {