PreviousNextTracker indexSee it online !

(152/314) 3382947 - TextTools: toggle line comment of last line throws exception

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(
at org.gjt.sp.jedit.buffer.JEditBuffer.getRuleSetAtOffset(
at org.gjt.sp.jedit.buffer.JEditBuffer.getContextSensitiveProperty(
at org.gjt.sp.jedit.Buffer.getContextSensitiveProperty(
at TextToolsComments.toggleLineComments(Unknown Source)
... rest not important I guess

Today's svn.

Submitted jarekczek - 2011-07-30 - 17:15:43z Assigned nobody
Priority 5 Category None
Status Open Group None
Resolution None Visibility No