From b34cd45ff0d5d5826ec2c7224a05c024d20395e9 Mon Sep 17 00:00:00 2001 From: OOM Date: Thu, 13 Feb 2020 02:27:05 +0800 Subject: [PATCH] android: fix the error (#549) --- android/src/main/java/com/theweflex/react/WeChatModule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/theweflex/react/WeChatModule.java b/android/src/main/java/com/theweflex/react/WeChatModule.java index eedfdf06..dd24d7da 100644 --- a/android/src/main/java/com/theweflex/react/WeChatModule.java +++ b/android/src/main/java/com/theweflex/react/WeChatModule.java @@ -97,7 +97,8 @@ public void onCatalystInstanceDestroy() { public static void handleIntent(Intent intent) { for (WeChatModule mod : modules) { - mod.api.handleIntent(intent, mod); + if (mod.api != null) + mod.api.handleIntent(intent, mod); } }