Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash in _completePendingNativeResultIfNeeded #1472

Open
hello-soon opened this issue Nov 17, 2021 · 2 comments
Open

crash in _completePendingNativeResultIfNeeded #1472

hello-soon opened this issue Nov 17, 2021 · 2 comments

Comments

@hello-soon
Copy link

Unhandled Exception: type 'Null' is not a subtype of type 'Object'
#0 _AsyncCompleter.complete (dart:async/future_impl.dart:46:41)
#1 FlutterBoostAppState._completePendingNativeResultIfNeeded. (package:flutter_boost/flutter_boost_app.dart:521:28)
#2 List.forEach (dart:core-patch/growable_array.dart:403:8)
#3 FlutterBoostAppState._completePendingNativeResultIfNeeded (package:flutter_boost/flutter_boost_app.dart:520:10)
#4 FlutterBoostAppState.onContainerShow. (package:flutter_boost/flutter_boost_app.dart:545:13)
#5 new Future.delayed. (dart:async/future.dart:315:39)
#6 _rootRun (dart:async/zone.dart:1346:47)
#7 _CustomZone.run (dart:async/zone.dart:1258:19)
#8 _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
#9 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1202:23)

image


简单的示例
Completer myCompleter;
myCompleter = Completer();
debugPrint("do do do ");
myCompleter.complete();

必crash

@hello-soon
Copy link
Author

image

参考flutter的Navigator

image

@joechan-cq
Copy link
Collaborator

v3.0-release1.0的tag上仍会报这个错,push方法源码上我看已经有了T extends Object?,是不是还有pushWithResult需要加
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants