LianjiaTech / Beike_AspectD

Flutter AOP framework. Now compatible with Flutter v3.10.5
MIT License
149 stars 20 forks source link

3.10.5版本按照步骤引用成功,但运行工程时报错 #40

Open alicehyxx opened 1 year ago

alicehyxx commented 1 year ago

Unhandled exception: Crash when compiling: Null check operator used on a null value

0 AopAddImplTransformer._filterAopItemInfo (file:///Users/solo/Project/beike_aspectd_opensource/inner/transformer/plugins/aop/beike_transformer/aop_addimpl_transformer.dart:181:50)

1 AopAddImplTransformer.visitClass (file:///Users/solo/Project/beike_aspectd_opensource/inner/transformer/plugins/aop/beike_transformer/aop_addimpl_transformer.dart:25:32)

2 Class.accept (package:kernel/ast.dart:1481:38)

3 visitList (package:kernel/ast.dart:15225:14)

4 Library.visitChildren (package:kernel/ast.dart:598:5)

5 AopAddImplTransformer.visitLibrary (file:///Users/solo/Project/beike_aspectd_opensource/inner/transformer/plugins/aop/beike_transformer/aop_addimpl_transformer.dart:17:10)

6 AopWrapperTransformer.transform (file:///Users/solo/Project/beike_aspectd_opensource/inner/transformer/plugins/aop/aop_transformer_wrapper.dart:138:31)

7 FlutterTarget.performPreConstantEvaluationTransformations (package:vm/target/flutter.dart:72:40)

8 KernelTarget.runBuildTransformations (package:front_end/src/fasta/kernel/kernel_target.dart:1518:19)

9 KernelTarget.buildComponent. (package:front_end/src/fasta/kernel/kernel_target.dart:638:7)

#10 withCrashReporting (package:front_end/src/fasta/crash.dart:136:12) #11 IncrementalCompiler.computeDelta. (package:front_end/src/fasta/incremental_compiler.dart:413:23) #12 IncrementalCompiler.compile (package:vm/incremental_compiler.dart:75:50) #13 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:595:11) #14 listenAndCompile. (package:frontend_server/frontend_server.dart:1308:11) the Dart compiler exited unexpectedly. the Dart compiler exited unexpectedly. 我看着错误,感觉是切片的代码没有针对空安全做好适配。或是我配置的问题?
alicehyxx commented 1 year ago

有大佬帮看看这个问题么?这个解决不了,3.10.5版本切片完全就用不了了