Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
* [Android] Fix potential NPE (#2025)
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkShen committed Jan 9, 2019
1 parent 9eb6268 commit 99ca6ca
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ public void layoutAfter(float computedWidth, float computedHeight) {
WXSDKManager.getInstance().getWXRenderManager().postOnUiThread(new Runnable() {
@Override
public void run() {
mComponent.updateExtra(atomicReference.get());
if(mComponent!=null) {
mComponent.updateExtra(atomicReference.get());
}
}
}, mComponent.getInstanceId());
}
Expand Down

0 comments on commit 99ca6ca

Please sign in to comment.