[ 
https://issues.apache.org/jira/browse/WEEX-597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16593420#comment-16593420
 ] 

ASF GitHub Bot commented on WEEX-597:
-------------------------------------

YorkShen closed pull request #1477: [WEEX-597][Android] fix can't get instance 
before render template for…
URL: https://github.com/apache/incubator-weex/pull/1477
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

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 57a8d0b86e..07f03c1df1 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
@@ -144,7 +144,7 @@ public void onStage(String name) {
      * @param time unixTime ,plz use WXUtils.getFixUnixTime
      */
     public void onStageWithTime(String name,long time){
-        WXSDKInstance instance = 
WXSDKManager.getInstance().getSDKInstance(mInstanceId);
+        WXSDKInstance instance = 
WXSDKManager.getInstance().getAllInstanceMap().get(mInstanceId);
         if (null != instance){
             instance.getExceptionRecorder().recordStage(name, time);
         }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> [Android] fix can't get instance before render template for apm
> ---------------------------------------------------------------
>
>                 Key: WEEX-597
>                 URL: https://issues.apache.org/jira/browse/WEEX-597
>             Project: Weex
>          Issue Type: Bug
>          Components: Android
>            Reporter: peihan
>            Assignee: YorkShen
>            Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to