lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r929454 - in /lucene/dev/trunk/solr: CHANGES.txt src/java/org/apache/solr/handler/ReplicationHandler.java
Date Wed, 31 Mar 2010 10:07:18 GMT
Author: noble
Date: Wed Mar 31 10:07:18 2010
New Revision: 929454

URL: http://svn.apache.org/viewvc?rev=929454&view=rev
Log:
SOLR-1853 Solr 1.4 Replication - Repeater throwing NullPointerException

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/src/java/org/apache/solr/handler/ReplicationHandler.java

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=929454&r1=929453&r2=929454&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Wed Mar 31 10:07:18 2010
@@ -124,6 +124,8 @@ New Features
 * SOLR-1379: Add RAMDirectoryFactory for non-persistent in memory index storage.
   (Alex Baranov via yonik)
 
+* SOLR-1769: Solr 1.4 Replication - Repeater throwing NullPointerException (Jörgen Rydenius
via noble)  
+
 
 Optimizations
 ----------------------

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/handler/ReplicationHandler.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/handler/ReplicationHandler.java?rev=929454&r1=929453&r2=929454&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/handler/ReplicationHandler.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/handler/ReplicationHandler.java Wed Mar
31 10:07:18 2010
@@ -920,7 +920,9 @@ public class ReplicationHandler extends 
         if (getCommit) {
           IndexCommit oldCommitPoint = indexCommitPoint;
           indexCommitPoint = core.getDeletionPolicy().getLatestCommit();
-          core.getDeletionPolicy().saveCommitPoint(indexCommitPoint.getVersion());
+          if (indexCommitPoint != null) {
+            core.getDeletionPolicy().saveCommitPoint(indexCommitPoint.getVersion());
+          }
           if(oldCommitPoint != null){
             core.getDeletionPolicy().releaseCommitPoint(oldCommitPoint.getVersion());
           }



Mime
View raw message