If the last line of a file is empty and we try to comment it (TextTools, Toggle Line Comment), we get an exception:
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 16026
at org.gjt.sp.jedit.buffer.JEditBuffer.getLineOfOffset(JEditBuffer.java:336)
at org.gjt.sp.jedit.buffer.JEditBuffer.getRuleSetAtOffset(JEditBuffer.java:1756)
at org.gjt.sp.jedit.buffer.JEditBuffer.getContextSensitiveProperty(JEditBuffer.java:1791)
at org.gjt.sp.jedit.Buffer.getContextSensitiveProperty(Buffer.java:1069)
at TextToolsComments.toggleLineComments(Unknown Source)
... rest not important I guess
Today's svn.
This appears to have been fix some time ago, probably by revision 20902.