-
Notifications
You must be signed in to change notification settings - Fork 604
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
null cannot be cast to non-null type org.jetbrains.uast.UParameter in PermissionsLaunchDetector
#1811
Comments
Just realized 0.36.0 is the latest release. However, the same error occurs on this version. |
Git bisect indicates that the bug started appearing after upgrading kotlin from 1.9 to 2.1.0. This specific commit includes adding the compose compiler ( |
Actually, it looks like @bentrengrove fixed this in #1804 (4a6828b) just three days ago:
- else -> (toUElement() as UParameter).typeReference!!.isComposable
+ else -> (toUElement() as? UParameter)?.typeReference?.isComposable == true |
I'll get out a new release for you |
Confirmed, issue resolved. Thank you for the release @bentrengrove ! |
Describe the bug
We started receiving this issue in our CI environment after upgrading dependencies (100% repro in my local environment as well). From what I can see, it seems like a bug in the
com.google.accompanist.permissions.lint.PermissionsLaunchDetector
detector.Full stack trace
(Stack traces have been prettified for readability)
To Reproduce
Sorry, no repro at this time.
Expected behavior
No crash - build should succeed.
Environment:
com.google.accompanist:accompanist-permissions:0.32.0
The text was updated successfully, but these errors were encountered: