| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
createState()/createStateAsync() may return null, and the default SimplePerformantInstrumentation.createState() does. After @NullMarked on instrumentation classes (#4272), unannotated state parameters were treated as non-null in Kotlin, causing NPEs for stateless subclasses. Annotate callback state parameters as @nullable to match the optional- state runtime contract. ChainedInstrumentation asserts non-null when casting its own materialized ChainedInstrumentationState. Fixes #4433
Test ReportTest Results
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Backport of #4435 to the 26.x maintenance branch.
Summary
This backports the fix for #4433. Kotlin implementations overriding these callbacks must declare the state parameter as InstrumentationState?.
Verification