Fix crash on empty database at startup.
This commit is contained in:
1 parent
bdf3c0a98e
commit
30c8941bd1
1 file changed
+1
-1
@@ -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