android / android/socialite

"Up" button sometimes causes a crash

Open
#36 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
721
Forks
162
PR merge metrics
No merged PRs in 30d

Description

Steps to replicate:
1. Click on a chat (e.g. Dog)
2. Swipe back
3. Click on the _same_ chat
4. Press the Up button
==> Crash

```
FATAL EXCEPTION: main Process: com.google.android.samples.socialite, PID: 27630
java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 1
```

This only happens some of the time.

Contributor guide

Open the contributing guide

Research direction

Reproduce the crash by opening the same chat, swiping back, reopening it, and pressing the Up button. Then trace the Up-button navigation and the state left by the back action; done means this sequence no longer raises IndexOutOfBoundsException.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.