Catch runtime exceptions in SavingTrackHelper#execWithClose
This commit is contained in:
parent
dbb233100c
commit
37e84689b1
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,6 @@ import java.util.LinkedHashMap;
|
|||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.TimeZone;
|
||||
|
||||
public class SavingTrackHelper extends SQLiteOpenHelper {
|
||||
|
||||
|
@ -584,6 +583,8 @@ public class SavingTrackHelper extends SQLiteOpenHelper {
|
|||
if (db != null) {
|
||||
db.execSQL(script, objects);
|
||||
}
|
||||
} catch (RuntimeException e) {
|
||||
log.error(e.getMessage(), e);
|
||||
} finally {
|
||||
if (db != null) {
|
||||
db.close();
|
||||
|
|
Loading…
Reference in a new issue