Index: src/main/resources/scripts/migration/from4_4To4_5/stk/RemoveTemplateToPrototypeRedundancy.groovy =================================================================== --- src/main/resources/scripts/migration/from4_4To4_5/stk/RemoveTemplateToPrototypeRedundancy.groovy (revision 55696) +++ src/main/resources/scripts/migration/from4_4To4_5/stk/RemoveTemplateToPrototypeRedundancy.groovy (working copy) @@ -82,7 +82,9 @@ */ def private deleteEmptyNodes(){ emptyNodesPaths.each{ String emptyNodePath -> - hm.delete(emptyNodePath) + if (hm.isExist(emptyNodePath)) { + hm.delete(emptyNodePath) + } } } @@ -111,7 +113,7 @@ /** * Remove redundancies between all templates located within the passed module in comparison to all passed site definitions. - * @param moduleName The module name of where all templates a re located to compare. + * @param moduleName The module name of where all templates are located to compare. * @param siteDefinitionPaths All the site definitions which should be compared with the modules templates. * This can occur in projects where different definitions share the same templates. */