adobe / aem-cloud-service-source-migration

Code refactoring tools for migrating to AEM as a Cloud Service
Apache License 2.0
7 stars 13 forks source link

Empty `variablesToReplace` property causes failure #48

Closed bstopp closed 3 years ago

bstopp commented 3 years ago

Expected Behaviour

Excluding or proving an empty variablesToReplace in the configuration should not create an application exception.

Actual Behaviour

if the `varaiblesToReplace file is missing or does not have at least an empty array value, the execution fails with:

********** Executing Dispatcher Converter **********
Converting Dispatcher Configurations...
    TypeError: Cannot convert undefined or null to object

Reproduce Scenario (including but not limited to)

Any configuration with an empty variablesToReplace property.

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem