typo and error handling

This commit is contained in:
Brian Sweeney 2018-09-06 12:29:26 -06:00
parent d85c20c85a
commit 999a7928c6
2 changed files with 3 additions and 4 deletions

View File

@ -187,9 +187,8 @@ public class DataContentViewerOtherCases extends JPanel implements DataContentVi
eamArtifact.getCorrelationType().getDisplayName(),
eamArtifact.getCorrelationValue()));
} catch (CorrelationAttributeNormalizationException ex) {
Exceptions.printStackTrace(ex);
LOGGER.log(Level.WARNING, String.format("Error getting commonality details for artifact with ID: %s.", eamArtifact.getID()), ex);
}
}
JOptionPane.showConfirmDialog(showCommonalityMenuItem,
msg.toString(),

View File

@ -1619,7 +1619,7 @@ abstract class AbstractSqlEamDb implements EamDb {
@Override
public List<String> getListCasesHavingArtifactInstancesKnownBad(CorrelationAttributeInstance.Type aType, String value) throws EamDbException, CorrelationAttributeNormalizationException {
String normalizeValuedd = CorrelationAttributeNormalizer.normalize(aType, value);
String normalizedValue = CorrelationAttributeNormalizer.normalize(aType, value);
Connection conn = connect();
@ -1642,7 +1642,7 @@ abstract class AbstractSqlEamDb implements EamDb {
try {
preparedStatement = conn.prepareStatement(sql);
preparedStatement.setString(1, normalizeValuedd);
preparedStatement.setString(1, normalizedValue);
preparedStatement.setByte(2, TskData.FileKnown.BAD.getFileKnownValue());
resultSet = preparedStatement.executeQuery();
while (resultSet.next()) {