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);


Reply via email to