mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
ChildView throws exceptions outside MojoShell
We're missing a null check. Fixes #2949
This commit is contained in:
parent
b070be2279
commit
39640bd0ef
@ -36,6 +36,8 @@ final mojom.ViewProxy _viewProxy = _initViewProxy();
|
||||
final mojom.View _view = _viewProxy?.ptr;
|
||||
|
||||
mojom.ViewContainer _initViewContainer() {
|
||||
if (_view == null)
|
||||
return null;
|
||||
mojom.ViewContainerProxy viewContainerProxy = new mojom.ViewContainerProxy.unbound();
|
||||
_view.getContainer(viewContainerProxy);
|
||||
viewContainerProxy.ptr.setListener(new mojom.ViewContainerListenerStub.unbound()..impl = _ViewContainerListenerImpl.instance);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user