mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 17:11:12 +01:00
Prevent crash
This commit is contained in:
@@ -102,7 +102,7 @@ public abstract class DB extends RoomDatabase {
|
||||
Cursor cursor = null;
|
||||
try {
|
||||
cursor = db.query(command, new Object[0]);
|
||||
if (cursor.moveToNext())
|
||||
if (cursor != null && cursor.moveToNext())
|
||||
return cursor.getString(0);
|
||||
else
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user