-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Crash: NPE in EditPostActivity OnPrepareOptionsMenu #9748
Comments
@theck13 actually, |
|
I've investigated this a bit, but was not able to reproduce the problem.
It's not clear to me how in the onPrepareOptionsMenu method call
is null and lead to the crash. |
Checked in Fabric, and the issue does affect Android 8 devices only. |
7-day impact: ~8 per day (5cac84cff8b88c29632af4d8-fabric-android)
|
Sentry issue: WORDPRESS-ANDROID-13 5-day impact: ~7 per day |
30-day impact: ~12 per day https://sentry.io/share/issue/3edf4083c6cc4d49a97e153fa45566dc/ |
Removed |
90-day impact: ~4 per day https://sentry.io/share/issue/3edf4083c6cc4d49a97e153fa45566dc/ |
I investigated this a bit and wasn't able to reproduce also. From Sentry it is still confirmed that the commonality is Android 8.0.0 and it does not seem a logic issue primarily. One thing to notice is that (AFAIU) it seems to happen always while we are in Aztec. It's interesting to notice also that the Cannot understand if there is a reason behind not checking for null but possibly we can be a bit more on the defensive code side and check also them? We can add a log to trace this event occurrence anyway. One odd thing I can think of is if caused by strange 8.0.0 behaviours we end up having both switch to Aztec and to Gutemberg menu items visible at the same time (if this odd null menu item happens at first init of the screen for example). Maybe we can add some checks in
If the above makes sense I can open a PR. @daniloercoli, @planarvoid wdyt? |
@develric I think this totally makes sense, let's add the non-null checks there |
This seems to be new in 12.1.1 and it has been very common in 12.1.2 and 12.2.
5cac84cff8b88c29632af4d8-fabric
The text was updated successfully, but these errors were encountered: