WordPress-Android
WordPress-Android copied to clipboard
NullPointerException
Sentry Issue: JETPACK-ANDROID-QZ1
NullPointerException: None
at org.wordpress.android.ui.posts.EditPostRepository.isPage(EditPostRepository.kt:78)
get() = post!!.isPage
at org.wordpress.android.ui.posts.PostsListActivity$initViewModel$8.invoke(PostsListActivity.kt:313)
isPage = editPostRepository.isPage
at org.wordpress.android.ui.posts.PostsListActivity$initViewModel$8.invoke(PostsListActivity.kt:308)
viewModel.openPrepublishingBottomSheet.observeEvent(this@PostsListActivity) {
at org.wordpress.android.viewmodel.EventKt$observeEvent$1.invoke(Event.kt:36)
this.observe(owner, { it?.getContentIfNotHandled()?.let(block) })
at org.wordpress.android.viewmodel.EventKt$observeEvent$1.invoke(Event.kt:36)
this.observe(owner, { it?.getContentIfNotHandled()?.let(block) })
...
(15 additional frame(s) were not displayed)
Thanks for reporting! 👍
Sentry Issue: WORDPRESS-ANDROID-2V12
@notandyvee I was able to reproduce this crash. Not consistently but more than once. Sentry event on my testing device 1, 2.
Steps to reproduce
Scenario 1
- Go to Post list
- Publish a post → Make some changes but don't update the post
- Go to Post list → Click on the more menu → Select Preview
- Close the Preview screen
- Click on More → Publish
Scenario 2
- Create a Draft
- Press back → More icon → Click on Publish
- Wait until the social accounts connect section is loaded
- Rotate the phone
- Press not now and press publish
cc @zwarm since you were also looking into this issue.
🫤 I am unable to reproduce the issue with these steps, but it's a new direction to go in. Thanks.