wordpress-mobile / WordPress-FluxC-Android

WordPress Network and Persistence layer based on the Flux architecture
GNU General Public License v2.0
57 stars 37 forks source link

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

Open sentry-io[bot] opened 4 months ago

sentry-io[bot] commented 4 months ago

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)
dangermattic commented 4 months ago

Thanks for reporting! 👍

sentry-io[bot] commented 4 months ago

Sentry Issue: JETPACK-ANDROID-KMY

irfano commented 4 months ago

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