First go at bug 413

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2366 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2006-02-14 10:51:26 +00:00
parent 45b60311d9
commit 391a0e2d12

View File

@@ -1655,6 +1655,7 @@ public class LuceneIndexerImpl extends LuceneBase implements LuceneIndexer
checkAbleToDoWork(true, false); checkAbleToDoWork(true, false);
if (!mainIndexExists()) if (!mainIndexExists())
{ {
remainingCount = size;
return; return;
} }
try try
@@ -1672,6 +1673,12 @@ public class LuceneIndexerImpl extends LuceneBase implements LuceneIndexer
try try
{ {
searcher = getSearcher(null); searcher = getSearcher(null);
// commit on another thread - appears like there is no index ...try later
if(searcher == null)
{
remainingCount = size;
return;
}
Hits hits; Hits hits;
try try
{ {