Commit 68c9957d authored by yangwu.jia's avatar yangwu.jia

防止空指针

parent 8e7b26dd
...@@ -546,7 +546,9 @@ public class XFlutterView extends FrameLayout { ...@@ -546,7 +546,9 @@ public class XFlutterView extends FrameLayout {
} else { } else {
locales.add(config.locale); locales.add(config.locale);
} }
flutterEngine.getLocalizationChannel().sendLocales(locales); if(flutterEngine!=null&&flutterEngine.getLocalizationChannel()!=null){
flutterEngine.getLocalizationChannel().sendLocales(locales);
}
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment