You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by tm...@apache.org on 2016/01/21 16:51:23 UTC
svn commit: r1725993 -
/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
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);