lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject svn commit: r751993 - /lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/ClobTransformer.java
Date Tue, 10 Mar 2009 06:26:23 GMT
Author: shalin
Date: Tue Mar 10 06:26:23 2009
New Revision: 751993

URL: http://svn.apache.org/viewvc?rev=751993&view=rev
Log:
SOLR-1056 -- Fix ending condition for ClobTransformer

Modified:
    lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/ClobTransformer.java

Modified: lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/ClobTransformer.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/ClobTransformer.java?rev=751993&r1=751992&r2=751993&view=diff
==============================================================================
--- lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/ClobTransformer.java
(original)
+++ lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/ClobTransformer.java
Tue Mar 10 06:26:23 2009
@@ -71,7 +71,7 @@
     char[] buf = new char[1024];
     int len;
     try {
-      while ((len = reader.read(buf)) != 0) {
+      while ((len = reader.read(buf)) != -1) {
         sb.append(buf, 0, len);
       }
     } catch (IOException e) {



Mime
View raw message