未验证 提交 14a6fd97 编写于 作者: C Chris Bracken 提交者: GitHub

Fix NPE when platform plugin delegate is null (#22852)

Adds a null check before dereferencing in
PlatformPlugin.popSystemNavigator. platformPluginDelegate is allowed to
be null, as it is in the PlatformPlugin(Activity, PlatformChannel)
constructor.
上级 9b1b7f6e
......@@ -310,7 +310,7 @@ public class PlatformPlugin {
}
private void popSystemNavigator() {
if (platformPluginDelegate.popSystemNavigator()) {
if (platformPluginDelegate != null && platformPluginDelegate.popSystemNavigator()) {
// A custom behavior was executed by the delegate. Don't execute default behavior.
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册