ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1725993 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
Date Thu, 21 Jan 2016 15:51:23 GMT
Author: tmill
Date: Thu Jan 21 15:51:23 2016
New Revision: 1725993

URL: http://svn.apache.org/viewvc?rev=1725993&view=rev
Log:
Fix to check for null before grabbing prob view.

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=1725993&r1=1725992&r2=1725993&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 Jan 21 15:51:23 2016
@@ -1016,7 +1016,7 @@ public abstract class Evaluation_ImplBas
 
             
             // get maps from ids to entities and relations:
-            JCas probView = jcas.getView(probViewname);
+            JCas probView = (probViewname == null ? null : jcas.getView(probViewname));
             Map<Integer, List<EventMention>> mentions = probViewname == null?
null : getMentionIdMap(jcas, probView);
             Map<String, List<TemporalTextRelation>> rels = probViewname == null
? null : getRelationIdMap(jcas, probView);
             



Mime
View raw message