wordpress-mobile / WordPress-FluxC-Android

WordPress Network and Persistence layer based on the Flux architecture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

sentry-io opened this issue · 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)

Thanks for reporting! 👍

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