Results 4 issues of

======== Exception caught by foundation library ==================================================== The following _CastError was thrown while dispatching notifications for SwiperController: Null check operator used on a null value When the exception was thrown,...

Flutter 开发 断点调试异常 ![1](https://user-images.githubusercontent.com/6906607/153528043-ec57c403-85b1-458c-a489-345b8386c0a7.png) [VERBOSE-2:ui_dart_state.cc(199)] Unhandled Exception: type 'Null' is not a subtype of type 'FutureOr' #0 _FutureListener.handleError (dart:async/future_impl.dart:169:20) #1 Future._propagateToListeners.handleError (dart:async/future_impl.dart:719:47) #2 Future._propagateToListeners (dart:async/future_impl.dart:740:24) #3 Future._completeError (dart:async/future_impl.dart:550:5) #4 Future._asyncCompleteError....

` UIViewController *viewController = [UIApplication sharedApplication].delegate.window.rootViewController; FLTImageCropperPlugin* instance = [[FLTImageCropperPlugin alloc] initWithViewController:viewController]; [registrar addMethodCallDelegate:instance channel:channel]; ` 混合开发的时候rootViewController,发生变化后,image_cropper不能弹出

出错堆栈 1 java.lang.RuntimeException:Unable to start receiver com.jiguang.jpush.JPushPlugin$JPushReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'void io.flutter.plugin.common.MethodChannel.invokeMethod(java.lang.String, java.lang.Object)' on a null object reference 2 android.app.ActivityThread.handleReceiver(ActivityThread.java:4495) 3 ...... 4 Caused by: 5 java.lang.NullPointerException:Attempt...