Removed unused logger
This commit is contained in:
1 parent
ee8509032a
commit
4ff870b05e
3 files changed
+1
-5
No files matched your search
@@ -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