Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Applying io.sentry.kotlin.compiler.gradle on a module with no @Composable functions throws NPE #687

Open
devPalacio opened this issue Apr 2, 2024 · 1 comment
Labels
bug Something isn't working Platform: Android

Comments

@devPalacio
Copy link

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

  1. Create a library module with compose = true but no functions annotated with Composable
  2. Apply io.sentry.kotlin.compiler.gradle and add io.sentry:sentry-compose-android as dependency
  3. 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)
@kahest
Copy link
Member

kahest commented Apr 4, 2024

Thanks for reporting @devPalacio - we'll have a fix soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Platform: Android
Projects
Status: No status
Status: Todo
Development

No branches or pull requests

3 participants