You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by pk...@apache.org on 2013/04/02 11:39:17 UTC

svn commit: r1463464 - /uima/sandbox/textmarker/trunk/textmarker-core/src/main/java/org/apache/uima/textmarker/TextMarkerStream.java

Author: pkluegl
Date: Tue Apr  2 09:39:16 2013
New Revision: 1463464

URL: http://svn.apache.org/r1463464
Log:
no jira - check on null for next TMB, return the first one if there is no annotation given

Modified:
    uima/sandbox/textmarker/trunk/textmarker-core/src/main/java/org/apache/uima/textmarker/TextMarkerStream.java

Modified: uima/sandbox/textmarker/trunk/textmarker-core/src/main/java/org/apache/uima/textmarker/TextMarkerStream.java
URL: http://svn.apache.org/viewvc/uima/sandbox/textmarker/trunk/textmarker-core/src/main/java/org/apache/uima/textmarker/TextMarkerStream.java?rev=1463464&r1=1463463&r2=1463464&view=diff
==============================================================================
--- uima/sandbox/textmarker/trunk/textmarker-core/src/main/java/org/apache/uima/textmarker/TextMarkerStream.java (original)
+++ uima/sandbox/textmarker/trunk/textmarker-core/src/main/java/org/apache/uima/textmarker/TextMarkerStream.java Tue Apr  2 09:39:16 2013
@@ -523,6 +523,9 @@ public class TextMarkerStream extends FS
   }
 
   public TextMarkerBasic getBasicNextTo(boolean before, AnnotationFS annotation) {
+    if(annotation == null) {
+      return beginAnchors.get(0);
+    }
     if (before) {
       TextMarkerBasic pointer = beginAnchors.get(annotation.getBegin());
       moveTo(pointer);