Catch runtime exceptions in SavingTrackHelper#execWithClose

This commit is contained in:
Alex Sytnyk 2018-07-17 17:33:41 +03:00
parent dbb233100c
commit 37e84689b1

View file

@ -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();