WordPress-FluxC-Android icon indicating copy to clipboard operation
WordPress-FluxC-Android copied to clipboard

NullPointerException: Attempt to invoke virtual method 'java.util.List org.wordpress.android.fluxc.network.rest.wpcom.r...

Open sentry[bot] opened this issue 1 year ago • 3 comments

Sentry Issue: JETPACK-ANDROID-KMY

NullPointerException: Attempt to invoke virtual method 'java.util.List org.wordpress.android.fluxc.network.rest.wpcom.revisions.RevisionsResponse.getDiffs()' on a null object reference
    at org.wordpress.android.fluxc.network.rest.wpcom.post.PostRestClient.revisionsResponseToRevisionsModel(PostRestClient.java:758)
    at org.wordpress.android.fluxc.network.rest.wpcom.post.PostRestClient.access$1900(PostRestClient.java:78)
    at org.wordpress.android.fluxc.network.rest.wpcom.post.PostRestClient$19.onResponse(PostRestClient.java:470)
    at org.wordpress.android.fluxc.network.rest.wpcom.post.PostRestClient$19.onResponse(PostRestClient.java:466)
    at org.wordpress.android.fluxc.network.rest.GsonRequest.deliverResponse(GsonRequest.java:56)
...
(9 additional frame(s) were not displayed)

sentry[bot] avatar May 29 '24 14:05 sentry[bot]

Thanks for reporting! 👍

dangermattic avatar May 29 '24 14:05 dangermattic

Sentry Issue: JETPACK-ANDROID-KMY

sentry[bot] avatar May 29 '24 14:05 sentry[bot]

It seems the response of fetchRevisions() function receives null RevisionsResponse and it causes NullPointerException.

irfano avatar May 29 '24 15:05 irfano