Prevent NPE
This commit is contained in:
parent
b3094fa5f0
commit
a475bf112f
|
@ -309,7 +309,11 @@ public class PodDBAdapter {
|
|||
dbHelper.close();
|
||||
dbHelper = null;
|
||||
}
|
||||
if(context != null) { // may not have been initialized
|
||||
return context.deleteDatabase(PodDBAdapter.DATABASE_NAME);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue