ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1705139 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
Date Thu, 24 Sep 2015 20:33:00 GMT
Author: clin
Date: Thu Sep 24 20:33:00 2015
New Revision: 1705139

URL: http://svn.apache.org/viewvc?rev=1705139&view=rev
Log:
add null check for timex annotations when write to anafora xml files

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java?rev=1705139&r1=1705138&r2=1705139&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
Thu Sep 24 20:33:00 2015
@@ -1092,7 +1092,7 @@ public abstract class Evaluation_ImplBas
                //add properties
                Element property = doc.createElement( "properties" );
                String timeClass = timex.getTimeClass();
-               if ( timeClass.equals( "DOCTIME" ) || timeClass.equals( "SECTIONTIME" ) )
{
+               if ( timeClass!=null && (timeClass.equals( "DOCTIME" ) || timeClass.equals(
"SECTIONTIME" ) ) ) {
                   typeE.setTextContent( timeClass );
                   property.setTextContent( "" );
                } else {



Mime
View raw message