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]


With regards,
Apache Git Services

Reply via email to