Commit 84ed2b72 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

DB manager: fix unlikely crash

parent 94ed689e
......@@ -459,6 +459,10 @@ public class DatabaseManager {
public synchronized void updateMedia(String location, mediaColumn col,
Object object) {
if (location == null)
return;
ContentValues values = new ContentValues();
switch (col) {
case MEDIA_PICTURE:
......@@ -584,7 +588,7 @@ public class DatabaseManager {
public synchronized void clearSearchhistory() {
mDb.delete(SEARCHHISTORY_TABLE_NAME, null, null);
}
/**
* Empty the database for debugging purposes
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment