diff options
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index deb31094e..66d94ac91 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -124,8 +124,12 @@ public class DataManager implements IdentityManager { } @Override - public Device getDeviceById(long id) throws SQLException { - updateDeviceCache(!devicesById.containsKey(id)); + public Device getDeviceById(long id) { + try { + updateDeviceCache(!devicesById.containsKey(id)); + } catch (SQLException e) { + Log.warning(e); + } return devicesById.get(id); } |