mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
RM: Patch fails if no records to patch!
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49666 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -116,6 +116,8 @@ public class RMv21RecordInheritancePatch extends AbstractModuleComponent
|
||||
}
|
||||
|
||||
Pair<Long, QName> aspectPair = qnameDAO.getQName(ASPECT_RECORD);
|
||||
if (aspectPair != null)
|
||||
{
|
||||
List<Long> records = patchDAO.getNodesByAspectQNameId(aspectPair.getFirst(), 0L, patchDAO.getMaxAdmNodeID());
|
||||
|
||||
if (logger.isDebugEnabled() == true)
|
||||
@@ -141,6 +143,7 @@ public class RMv21RecordInheritancePatch extends AbstractModuleComponent
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (logger.isDebugEnabled() == true)
|
||||
{
|
||||
|
Reference in New Issue
Block a user