jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1164479 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/Indexer.java
Date Fri, 02 Sep 2011 11:25:12 GMT
Author: mduerig
Date: Fri Sep  2 11:25:12 2011
New Revision: 1164479

URL: http://svn.apache.org/viewvc?rev=1164479&view=rev
Log:
Indexer: handle empty journal correctly

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/Indexer.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/Indexer.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/Indexer.java?rev=1164479&r1=1164478&r2=1164479&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/Indexer.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/Indexer.java
Fri Sep  2 11:25:12 2011
@@ -172,6 +172,11 @@ public class Indexer {
         JsopTokenizer t = new JsopTokenizer(journal);
         String lastRevision = readRevision;
         t.read('[');
+        if (t.matches(']')) {
+            // nothing to update
+            return;
+        }
+
         HashMap<String, String> map = new HashMap<String, String>();
         do {
             map.clear();



Mime
View raw message