Prevent crash

This commit is contained in:
M66B
2021-08-17 14:21:08 +02:00
parent 3096f4c471
commit 545d4664ae
3 changed files with 9 additions and 7 deletions

View File

@@ -2250,6 +2250,8 @@ public abstract class DB extends RoomDatabase {
@TypeConverter
public static int fromLogType(EntityLog.Type type) {
if (type == null)
type = EntityLog.Type.General;
return type.ordinal();
}
}