Fix crash on empty database at startup.
This commit is contained in:
@@ -46,7 +46,7 @@ class GameRepository @Inject constructor(private val gameDao: GameDao, private
|
||||
{
|
||||
return withContext(Dispatchers.IO) {
|
||||
val active = getActiveGame()
|
||||
return@withContext roundDao.getAllForGame(active.uid)
|
||||
return@withContext roundDao.getAllForGame(active?.uid)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user