Skip to content
New issue

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

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

Already on GitHub? # to your account

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

Open
alicehyxx opened this issue Aug 30, 2023 · 1 comment
Open

Comments

@alicehyxx
Copy link

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
Copy link
Author

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

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

No branches or pull requests

1 participant