Revision: 7507
http://languagetool.svn.sourceforge.net/languagetool/?rev=7507&view=rev
Author: dnaber
Date: 2012-06-25 20:03:28 +0000 (Mon, 25 Jun 2012)
Log Message:
-----------
trying to add a workaround for bug #3537500 (ArrayOutOfBounds) until the real
reason is found
Modified Paths:
--------------
trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java
Modified:
trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java
2012-06-25 19:16:37 UTC (rev 7506)
+++ trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java
2012-06-25 20:03:28 UTC (rev 7507)
@@ -258,8 +258,14 @@
*/
public void setParaEnd() {
if (!isParaEnd()) {
- final AnalyzedToken paragraphEnd = new AnalyzedToken(getToken(),
- JLanguageTool.PARAGRAPH_END_TAGNAME, getAnalyzedToken(0).getLemma());
+ final AnalyzedToken paragraphEnd;
+ if (anTokReadings.length == 0) {
+ // workaround for ArraysOutOfBounds (bug #3537500) until the real
reason is found:
+ paragraphEnd = new AnalyzedToken(getToken(),
JLanguageTool.PARAGRAPH_END_TAGNAME, null);
+ } else {
+ paragraphEnd = new AnalyzedToken(getToken(),
+ JLanguageTool.PARAGRAPH_END_TAGNAME,
getAnalyzedToken(0).getLemma());
+ }
addReading(paragraphEnd);
}
}
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