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:
Roy Wetherall
2013-05-01 02:39:26 +00:00
parent 4fdb024720
commit 4fbdb89624

View File

@@ -116,6 +116,8 @@ public class RMv21RecordInheritancePatch extends AbstractModuleComponent
} }
Pair<Long, QName> aspectPair = qnameDAO.getQName(ASPECT_RECORD); Pair<Long, QName> aspectPair = qnameDAO.getQName(ASPECT_RECORD);
if (aspectPair != null)
{
List<Long> records = patchDAO.getNodesByAspectQNameId(aspectPair.getFirst(), 0L, patchDAO.getMaxAdmNodeID()); List<Long> records = patchDAO.getNodesByAspectQNameId(aspectPair.getFirst(), 0L, patchDAO.getMaxAdmNodeID());
if (logger.isDebugEnabled() == true) if (logger.isDebugEnabled() == true)
@@ -141,6 +143,7 @@ public class RMv21RecordInheritancePatch extends AbstractModuleComponent
} }
} }
} }
}
if (logger.isDebugEnabled() == true) if (logger.isDebugEnabled() == true)
{ {