mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Removed unused logger
This commit is contained in:
parent
ee8509032a
commit
4ff870b05e
3 changed files with 1 additions and 5 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue