mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Addition tests for records, fixed up a couple of issues in the query method as a result.
This commit is contained in:
@@ -197,7 +197,7 @@ public class RecordsManagementQueryDAOImpl implements RecordsManagementQueryDAO,
|
|||||||
StringBuilder logMessage = null;
|
StringBuilder logMessage = null;
|
||||||
NodeRef nodeRefToAdd;
|
NodeRef nodeRefToAdd;
|
||||||
|
|
||||||
if (nodeDAO.exists(nodeId))
|
if (nodeId != null && nodeDAO.exists(nodeId))
|
||||||
{
|
{
|
||||||
if (logger.isDebugEnabled())
|
if (logger.isDebugEnabled())
|
||||||
{
|
{
|
||||||
@@ -206,7 +206,7 @@ public class RecordsManagementQueryDAOImpl implements RecordsManagementQueryDAO,
|
|||||||
|
|
||||||
// if the referencing node is a version2Store reference to the content url, add the uuid for the version 2 frozen node ref
|
// if the referencing node is a version2Store reference to the content url, add the uuid for the version 2 frozen node ref
|
||||||
NodeRef version2FrozenNodeRef = (NodeRef) nodeDAO.getNodeProperty(nodeId, Version2Model.PROP_QNAME_FROZEN_NODE_REF);
|
NodeRef version2FrozenNodeRef = (NodeRef) nodeDAO.getNodeProperty(nodeId, Version2Model.PROP_QNAME_FROZEN_NODE_REF);
|
||||||
if (version2FrozenNodeRef != null)
|
if (version2FrozenNodeRef != null && nodeDAO.exists(version2FrozenNodeRef))
|
||||||
{
|
{
|
||||||
nodeRefToAdd = version2FrozenNodeRef;
|
nodeRefToAdd = version2FrozenNodeRef;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user