mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2 to HEAD
19524: Fix AVM indexing NPE when running AVMCrawlTestP (if src & dst are both deleted / not there) 19652: ALF-885 - fix test git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19726 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -270,6 +270,16 @@ public class AVMLuceneIndexerImpl extends AbstractLuceneIndexerImpl<String> impl
|
|||||||
AVMNodeDescriptor dstDesc = avmService.lookup(difference.getDestinationVersion(), difference.getDestinationPath(), true);
|
AVMNodeDescriptor dstDesc = avmService.lookup(difference.getDestinationVersion(), difference.getDestinationPath(), true);
|
||||||
// New
|
// New
|
||||||
if (srcDesc == null)
|
if (srcDesc == null)
|
||||||
|
{
|
||||||
|
if (dstDesc == null)
|
||||||
|
{
|
||||||
|
// Nothing to do for this case - both are deleted/not there
|
||||||
|
if (s_logger.isDebugEnabled())
|
||||||
|
{
|
||||||
|
s_logger.debug("Skipped - src & dst deleted / not there: "+difference);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
index(difference.getDestinationPath());
|
index(difference.getDestinationPath());
|
||||||
if (dstDesc.isDirectory())
|
if (dstDesc.isDirectory())
|
||||||
@@ -278,6 +288,7 @@ public class AVMLuceneIndexerImpl extends AbstractLuceneIndexerImpl<String> impl
|
|||||||
}
|
}
|
||||||
reindexAllAncestors(difference.getDestinationPath());
|
reindexAllAncestors(difference.getDestinationPath());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// New Delete
|
// New Delete
|
||||||
else if (!srcDesc.isDeleted() && ((dstDesc == null) || dstDesc.isDeleted()))
|
else if (!srcDesc.isDeleted() && ((dstDesc == null) || dstDesc.isDeleted()))
|
||||||
{
|
{
|
||||||
@@ -291,6 +302,10 @@ public class AVMLuceneIndexerImpl extends AbstractLuceneIndexerImpl<String> impl
|
|||||||
if ((dstDesc == null) || dstDesc.isDeleted())
|
if ((dstDesc == null) || dstDesc.isDeleted())
|
||||||
{
|
{
|
||||||
// Nothing to do for this case - both are deleted/not there
|
// Nothing to do for this case - both are deleted/not there
|
||||||
|
if (s_logger.isDebugEnabled())
|
||||||
|
{
|
||||||
|
s_logger.debug("Skipped - src & dst deleted / not there: "+difference);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user