mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 07:03:35 +00:00
Removed unused logger
This commit is contained in:
@@ -38,7 +38,7 @@ public abstract class AppDatabase extends RoomDatabase {
|
||||
|
||||
public static synchronized AppDatabase getInstance(Context context) {
|
||||
|
||||
if (instance == null) {
|
||||
if (instance == null && context != null) {
|
||||
instance = Room.databaseBuilder(context.getApplicationContext(), AppDatabase.class, DB_NAME)
|
||||
.fallbackToDestructiveMigration()
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user