~singpolyma/cheogram-android

1213d40f156184567a089fdbf3c4b1a9c0c45189 — Stephen Paul Weber 11 months ago 8f90a98
Fix index out of bounds issue

Very rare, found by google play pre-launch
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java
M src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java => src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java +1 -1
@@ 922,7 922,7 @@ public class StartConversationActivity extends XmppActivity implements XmppConne
        final boolean onboardingCancel = xmppConnectionService.getPreferences().getString("onboarding_action", "").equals("cancel");
        if (onboardingCancel) xmppConnectionService.getPreferences().edit().remove("onboarding_action").commit();

        if (intent != null && intent.getBooleanExtra("init", false) && !onboardingCancel) {
        if (intent != null && intent.getBooleanExtra("init", false) && !onboardingCancel && !xmppConnectionService.getAccounts().isEmpty()) {
            Account selectedAccount = xmppConnectionService.getAccounts().get(0);
            final String accountJid = intent.getStringExtra(EXTRA_ACCOUNT);
            intent = null;