in core/src/main/java/com/github/shadowsocks/database/ProfileManager.kt [128:138]
fun ensureNotEmpty() {
val nonEmpty = try {
PrivateDatabase.profileDao.isNotEmpty()
} catch (ex: SQLiteCantOpenDatabaseException) {
throw IOException(ex)
} catch (ex: SQLException) {
Timber.w(ex)
false
}
if (!nonEmpty) DataStore.profileId = createProfile().id
}