Revision: 7146
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7146&view=rev
Author:   milek_pl
Date:     2012-06-01 11:06:44 +0000 (Fri, 01 Jun 2012)
Log Message:
-----------
fix a problem with a Unifier, thanks to Jaume Ortola i Font

Modified Paths:
--------------
    trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Unifier.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Unifier.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Unifier.java   
2012-06-01 10:52:39 UTC (rev 7145)
+++ trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Unifier.java   
2012-06-01 11:06:44 UTC (rev 7146)
@@ -230,7 +230,9 @@
         if (tokSequence.size() == readingsCounter) {
           tokSequence.add(new AnalyzedTokenReadings(aToken, 0));
         } else {
-          tokSequence.get(readingsCounter).addReading(aToken);
+                if (readingsCounter<tokSequence.size()) {
+                 tokSequence.get(readingsCounter).addReading(aToken);
+               }   /* else? */         
         }
         tmpFeaturesFound = tokenFeaturesFound;
       }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to