Skip to content

Commit 94b3fad

Browse files
committed
Fix OutOfBounds crash
1 parent daa6260 commit 94b3fad

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/java/com/troplo/privateuploader/components/core

1 file changed

+1
-1
lines changed

app/src/main/java/com/troplo/privateuploader/components/core/UserAvatar.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ fun UserAvatar(
142142
.align(Alignment.BottomEnd)
143143
) {
144144
Text(text = "", modifier = Modifier.width(28.dp))
145-
if(friend.otherUser?.platforms?.get(0)?.platform !== "android_kotlin") {
145+
if(friend.otherUser?.platforms == null || friend.otherUser?.platforms!!.isEmpty() || friend.otherUser?.platforms?.get(0)?.platform !== "android_kotlin") {
146146
Box(
147147
modifier = Modifier
148148
.size(dotSize)

0 commit comments

Comments
 (0)