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

NullPointerException: site.url must not be null

Open sentry-io[bot] opened this issue 1 year ago • 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)

sentry-io[bot] avatar Apr 18 '24 13:04 sentry-io[bot]

This issue looks similar to https://github.com/wordpress-mobile/WordPress-FluxC-Android/issues/1579 but affecting a different parameter. I wonder if it could be addressed following the same approach as applied in https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/2389. This implies storing the site URL in a variable to avoid the exception in case the site object is modified.

fluiddot avatar Apr 18 '24 16:04 fluiddot