wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.92k stars 1.3k forks source link

NullPointerException: EditPostRepository.getContent #20540

Closed sentry-io[bot] closed 3 weeks ago

sentry-io[bot] commented 1 month ago

Sentry Issue: JETPACK-ANDROID-N1X

java.lang.NullPointerException: null
    at org.wordpress.android.ui.posts.EditPostRepository.getContent(EditPostRepository.kt:66)
    at org.wordpress.android.ui.posts.EditPostActivity.fillContentEditorFields(EditPostActivity.java:2620)
    at org.wordpress.android.ui.posts.EditPostActivity.refreshEditorContent(EditPostActivity.java:1739)
    at org.wordpress.android.ui.posts.EditPostActivity.lambda$startObserving$23(EditPostActivity.java:1082)
    at org.wordpress.android.ui.posts.EditPostActivity.$r8$lambda$QcdQgXlL58sCjUyf-cGO7zVwg6E(EditPostActivity.java:0)
    at org.wordpress.android.ui.posts.EditPostActivity$$InternalSyntheticLambda$2$cd34bdf4753250c03a781d41f3a24fc2ab20556d506fce19eeef15a51d794684$10.onChanged(R8$$SyntheticClass:0)
    at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
    at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
    at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
    at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
    at androidx.lifecycle.LiveData$1.run(LiveData.java:93)
    at android.os.Handler.handleCallback(Handler.java:942)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:226)
    at android.os.Looper.loop(Looper.java:313)
    at android.app.ActivityThread.main(ActivityThread.java:8762)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
dangermattic commented 1 month ago

Thanks for reporting! 👍