Skip to content
Snippets Groups Projects
Commit c5e00cc8 authored by Kelly Kelly's avatar Kelly Kelly
Browse files

Fixed confusing message issue

parent cd078d9a
Branches
Tags
No related merge requests found
...@@ -839,8 +839,11 @@ public void propertyChange(PropertyChangeEvent event) { ...@@ -839,8 +839,11 @@ public void propertyChange(PropertyChangeEvent event) {
Content newDataSource = (Content) event.getNewValue(); Content newDataSource = (Content) event.getNewValue();
if (isListeningEnabled()) { if (isListeningEnabled()) {
try { try {
drawableDB.insertOrUpdateDataSource(newDataSource.getId(), DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN); // status of UNKNOWN from getDataSourceDbBuildStatus means that the data source is not known
} catch (SQLException ex) { if(drawableDB.getDataSourceDbBuildStatus(newDataSource.getId()) == DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN) {
drawableDB.insertOrUpdateDataSource(newDataSource.getId(), DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN);
}
} catch (SQLException | TskCoreException ex) {
logger.log(Level.SEVERE, String.format("Error updating datasources table (data source object ID = %d, status = %s)", newDataSource.getId(), DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN.toString()), ex); //NON-NLS logger.log(Level.SEVERE, String.format("Error updating datasources table (data source object ID = %d, status = %s)", newDataSource.getId(), DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN.toString()), ex); //NON-NLS
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment