Menu

#1435 TextTools: toggle line comment of last line throws exception

None
closed-works-for-me
nobody
None
5
2015-08-10
2011-07-30
No

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.

Discussion

  • Dale Anson

    Dale Anson - 2015-08-10

    This appears to have been fix some time ago, probably by revision 20902.

     
  • Dale Anson

    Dale Anson - 2015-08-10
    • status: open --> closed-works-for-me
    • Group: -->
     

Log in to post a comment.