Revision: 18324 http://sourceforge.net/p/gate/code/18324 Author: johann_p Date: 2014-09-12 12:22:38 +0000 (Fri, 12 Sep 2014) Log Message: ----------- I have no idea what this does, but one thing is certain, the index for accessing an array element should not be larger than the biggest possible index.
Modified Paths: -------------- gate/trunk/src/main/gate/creole/orthomatcher/MatchRule14.java Modified: gate/trunk/src/main/gate/creole/orthomatcher/MatchRule14.java =================================================================== --- gate/trunk/src/main/gate/creole/orthomatcher/MatchRule14.java 2014-09-12 12:05:36 UTC (rev 18323) +++ gate/trunk/src/main/gate/creole/orthomatcher/MatchRule14.java 2014-09-12 12:22:38 UTC (rev 18324) @@ -34,7 +34,7 @@ result = false; else { // now do the matching - for (int i=0,j= 0; i < orthomatcher.tokensShortAnnot.size() && mismatches < 2; i++) { + for (int i=0,j= 0; i < orthomatcher.tokensShortAnnot.size() && j < orthomatcher.tokensLongAnnot.size() && mismatches < 2; i++) { // Out.prln("i = " + i); // Out.prln("j = " + j); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ GATE-cvs mailing list GATE-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gate-cvs