Skip to content

IllegalStateException: SelectedSite.get() was accessed before being initialized - siteId -1. #10150

@sentry

Description

@sentry

Sentry Issue: WOOCOMMERCE-ANDROID-8GD

IllegalStateException: SelectedSite.get() was accessed before being initialized - siteId -1.
Consider calling selectedSite.exists() to ensure site exists prior to calling selectedSite.get().
    at com.woocommerce.android.tools.SelectedSite.get(SelectedSite.kt:64)
    at com.woocommerce.android.ui.main.MainActivityViewModel.removeOrderNotifications(MainActivityViewModel.kt:125)
    at com.woocommerce.android.ui.main.MainActivity.onNavItemSelected(MainActivity.kt:690)
    at com.woocommerce.android.ui.main.MainBottomNavigationView.onNavigationItemSelected(MainBottomNavigationView.kt:142)
    at com.woocommerce.android.ui.main.MainBottomNavigationView.setCurrentPosition(MainBottomNavigationView.kt:41)
...
(40 additional frame(s) were not displayed)

Metadata

Metadata

Labels

good first issueThe issue is a good candidate for a community contribution or for a newcomer to the team.type: crashThe worst kind of bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions