Skip to content

Commit 6ce067b

Browse files
yonghanJubngsh
andcommitted
🐛 startRunning() 함수 예외 처리 추가
Co-authored-by: bngsh <[email protected]>
1 parent 7644175 commit 6ce067b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

data/src/main/java/com/whyranoid/data/running/RunnerDataSourceImpl.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class RunnerDataSourceImpl(private val db: FirebaseFirestore) : RunnerDataSource
2424
}
2525

2626
override suspend fun startRunning(uid: String): Boolean {
27+
if (uid.isBlank()) return false
2728
return suspendCoroutine { continuation ->
2829
db.collection("Runners")
2930
.document("runnersId")

0 commit comments

Comments
 (0)