ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brittfi...@apache.org
Subject svn commit: r1561330 - /ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cr/JdbcCollectionReader.java
Date Sat, 25 Jan 2014 16:02:34 GMT
Author: brittfitch
Date: Sat Jan 25 16:02:34 2014
New Revision: 1561330

URL: http://svn.apache.org/r1561330
Log:
CTAKES-281
prevent SQLException on null row in external resource file.

Modified:
    ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cr/JdbcCollectionReader.java

Modified: ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cr/JdbcCollectionReader.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cr/JdbcCollectionReader.java?rev=1561330&r1=1561329&r2=1561330&view=diff
==============================================================================
--- ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cr/JdbcCollectionReader.java
(original)
+++ ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cr/JdbcCollectionReader.java
Sat Jan 25 16:02:34 2014
@@ -169,7 +169,7 @@ public class JdbcCollectionReader extend
         List<String> lineList = new ArrayList<String>();
         BufferedReader br = new BufferedReader(new FileReader(valueFile));
         String line = br.readLine();
-        while (line != null)
+        while (line != null && line.trim().length()>0)
         {
             lineList.add(line);
             line = br.readLine();



Mime
View raw message