mirror of
https://github.com/elisspace/autopsy.git
synced 2026-09-17 08:16:24 +00:00
Add a null check of type before type is used
This commit is contained in:
@@ -1095,6 +1095,9 @@ abstract class AbstractSqlEamDb implements EamDb {
|
||||
* @throws CorrelationAttributeNormalizationException
|
||||
*/
|
||||
private String prepareGetInstancesSql(CorrelationAttributeInstance.Type aType, List<String> values) throws CorrelationAttributeNormalizationException {
|
||||
if (aType == null) {
|
||||
throw new CorrelationAttributeNormalizationException("Cannot get instances for null correlation type");
|
||||
}
|
||||
String tableName = EamDbUtil.correlationTypeToInstanceTableName(aType);
|
||||
String sql
|
||||
= "SELECT "
|
||||
|
||||
Reference in New Issue
Block a user