Skip to content
Snippets Groups Projects
Commit 0ea894b3 authored by Timotej Barbuš's avatar Timotej Barbuš
Browse files

bugfix

parent a42665bf
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,13 @@ class UserdataDBHelper(context: Context):SQLiteOpenHelper(context, "Database", n
return -1
}
cursor.moveToFirst()
val res = cursor.getString(0)
var res = -1
try {
res = cursor.getInt(0)
} catch (e: Exception) {
return -1
}
myDB.close()
return res.toInt()
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment