Skip to content
Snippets Groups Projects
Commit ab461253 authored by David Büchler's avatar David Büchler
Browse files

Added checks if pattern has been configured

parent 425a8d67
No related branches found
No related tags found
No related merge requests found
......@@ -774,7 +774,11 @@ DuplicateScannerUtils.GetBlockSize = function()
DuplicateScannerUtils.GetEntityFieldsFromConfig = function(pFilterName, pTargetEntity)
{
let indexPattern = _DuplicateScannerUtils._loadIndexPattern(pFilterName, pTargetEntity);
if(indexPattern == null || indexPattern == "")
return [];
let fieldConfigs = _DuplicateScannerUtils._loadEntityFieldConfigsFromPattern(indexPattern);
if(fieldConfigs == null || fieldConfigs.length < 1)
return [];
let entityFields = _DuplicateScannerUtils._loadEntityFieldsFromFieldConfigs(fieldConfigs);
let entityIdField = _DuplicateScannerUtils._loadEntityIdField(pFilterName, pTargetEntity);
entityFields.push(entityIdField);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment