From: Brett Porter Date: Mon, 9 Mar 2009 08:30:40 +0000 (+0000) Subject: [MRM-749] we actually need to explicitly skip the processFile method if the index... X-Git-Tag: archiva-1.2~84 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=302247e263568af3fa2ef18981734a49ed9d6c3f;p=archiva.git [MRM-749] we actually need to explicitly skip the processFile method if the index couldn't be created git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@751620 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java index 0f948d1e4..6203611cb 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java @@ -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 );