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/07/10 09:28:39 UTC

[incubator-weex] branch master updated: [Android] FIX NP (#2670)

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 74e98b0  [Android] FIX NP (#2670)
74e98b0 is described below

commit 74e98b027c0d0648f2bf147110e66286e9b2fa17
Author: chen <lu...@users.noreply.github.com>
AuthorDate: Wed Jul 10 17:28:34 2019 +0800

    [Android] FIX NP (#2670)
---
 .../sdk/src/main/java/com/taobao/weex/performance/WXInstanceApm.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/android/sdk/src/main/java/com/taobao/weex/performance/WXInstanceApm.java b/android/sdk/src/main/java/com/taobao/weex/performance/WXInstanceApm.java
index a24cece..bfe7057 100644
--- a/android/sdk/src/main/java/com/taobao/weex/performance/WXInstanceApm.java
+++ b/android/sdk/src/main/java/com/taobao/weex/performance/WXInstanceApm.java
@@ -316,7 +316,10 @@ public class WXInstanceApm {
         addProperty(KEY_PROPERTIES_ERROR_CODE, VALUE_ERROR_CODE_DEFAULT);
         addProperty(KEY_PAGE_PROPERTIES_JSLIB_VERSION, WXEnvironment.JS_LIB_SDK_VERSION);
         addProperty(KEY_PAGE_PROPERTIES_WEEX_VERSION, WXEnvironment.WXSDK_VERSION);
-        addProperty(KEY_PAGE_PROPERTIES_UIKIT_TYPE, instance.getRenderType());
+        addProperty(KEY_PAGE_PROPERTIES_WEEX_VERSION, WXEnvironment.WXSDK_VERSION);
+        if (null != instance){
+            addProperty(KEY_PAGE_PROPERTIES_UIKIT_TYPE, instance.getRenderType());
+        }
 
         if (instance != null && (instance.getRenderStrategy() == WXRenderStrategy.DATA_RENDER
                 || instance.getRenderStrategy() == WXRenderStrategy.DATA_RENDER_BINARY)) {