Open sentry-io[bot] opened 2 months ago
Thanks for reporting! 👍
It doesn't seem that this was in-fact introduced in 24.8, but there was recent code refactoring the EditPostActivity
to Kotlin which caused this new crash signature when the text
passed to autoCreateLinks
is null
, I believe.
@zwarm since you probably know more about this context and the Kotlin conversion, I am assigning you to the crash, but feel free to assign to someone else if it makes sense.
I did a quick investigation and it looks like the issue is that autoCreateLinks
can return null
, but it's not marked as @Nullable
, so the Kotlin code doesn't complain in compilation time and crashes in that scenario in runtime.
I believe we need to properly handle the case of text
or autoCreateLinks
being null
to avoid this crash.
@thomashorta - Exactly. In the java class only the first use of autoCreateLinks
was checking for nulls before usage, the second use of the method was not. I am raising a PR against release/24.8 to check for nulls and if so, then send empty text instead. The jave code would have also crashed because it did not prevent nulls from being passed along. :(
Sentry Issue: WORDPRESS-ANDROID-2YCN
Sentry Issue: JETPACK-ANDROID-R4R