Merge pull request #2967 from APriestman/2817_importHashDupes

Don't throw an exception for a duplicate value
This commit is contained in:
Richard Cordovano 2017-07-28 16:27:03 -04:00 committed by GitHub
commit fd0a22696f

View File

@ -637,9 +637,7 @@ final class ImportHashDatabaseDialog extends javax.swing.JDialog {
knownStatus,
"");
if (!globalInstances.add(eamGlobalFileInstance)) {
throw new EamDbException(Bundle.ImportHashDatabaseDialog_ImportHashDatabaseWorker_duplicate(parts[0])); // NON-NLS
}
globalInstances.add(eamGlobalFileInstance);
}
dbManager.bulkInsertReferenceTypeEntries(globalInstances, contentType);