]> source.dussan.org Git - archiva.git/commitdiff
[MRM-749] we actually need to explicitly skip the processFile method if the index...
authorBrett Porter <brett@apache.org>
Mon, 9 Mar 2009 08:30:40 +0000 (08:30 +0000)
committerBrett Porter <brett@apache.org>
Mon, 9 Mar 2009 08:30:40 +0000 (08:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@751620 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java

index 0f948d1e474650e85214ac0868ca90a8d52a3e52..6203611cbb846902ccc457c1d16d38d3dd1230f2 100644 (file)
@@ -160,6 +160,12 @@ public class NexusIndexerConsumer
     public void processFile( String path )
         throws ConsumerException
     {
+        if ( context == null )
+        {
+            // didn't start correctly, so skip
+            return;
+        }
+        
         File artifactFile = new File( managedRepository, path );        
         ArtifactContext artifactContext = artifactContextProducer.getArtifactContext( context, artifactFile );