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

Fixed confusing message issue

parent cd078d9a
No related branches found
No related tags found
No related merge requests found
......@@ -839,8 +839,11 @@ public void propertyChange(PropertyChangeEvent event) {
Content newDataSource = (Content) event.getNewValue();
if (isListeningEnabled()) {
try {
drawableDB.insertOrUpdateDataSource(newDataSource.getId(), DrawableDB.DrawableDbBuildStatusEnum.UNKNOWN);
} catch (SQLException ex) {
// status of UNKNOWN from getDataSourceDbBuildStatus means that the data source is not known
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
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment