wordpress-mobile/WordPress-FluxC-Android

NullPointerException: site.url must not be null

Opened this issue · 1 comments

Sentry Issue: WORDPRESS-ANDROID-2QJZ

NullPointerException: site.url must not be null
    at org.wordpress.android.fluxc.store.ReactNativeStore.executeWPAPIRequest(ReactNativeStore.kt:178)
    at org.wordpress.android.fluxc.store.ReactNativeStore.executeWPAPIGetRequest(ReactNativeStore.kt:135)
    at org.wordpress.android.fluxc.store.ReactNativeStore.access$executePost(ReactNativeStore.kt:33)
    at org.wordpress.android.fluxc.store.ReactNativeStore.access$executeWPAPIGetRequest(ReactNativeStore.kt:33)
    at org.wordpress.android.fluxc.store.ReactNativeStore$executeGetRequest$2.invokeSuspend(ReactNativeStore.kt:78)
...
(27 additional frame(s) were not displayed)

This issue looks similar to #1579 but affecting a different parameter. I wonder if it could be addressed following the same approach as applied in #2389. This implies storing the site URL in a variable to avoid the exception in case the site object is modified.