Applying io.sentry.kotlin.compiler.gradle on a module with no @Composable functions throws NPE #687
Closed
Description
Gradle Version
8.5
AGP Version
8.2.1
Code Minifier/Optimizer
R8
Version
4.4.0
Sentry SDK Version
7.6.0
Steps to Reproduce
- Create a library module with
compose = true
but no functions annotated withComposable
- Apply
io.sentry.kotlin.compiler.gradle
and addio.sentry:sentry-compose-android
as dependency - Compile the module
Expected Result
Module compiles or throws a more helpful error message.
Actual Result
module:compileDebugKotlin FAILED
e: java.lang.NullPointerException
at io.sentry.compose.JetpackComposeTracingIrExtension.generate(JetpackComposeTracingIrExtension.kt:56)
Metadata
Assignees
Labels
Type
Projects
Status
Done
Status
No status