lkishalmi commented on issue #1012: [NETBEANS-1440] Fixed BadLocationException on triple click to select … URL: https://github.com/apache/incubator-netbeans/pull/1012#issuecomment-437627891 I'm not sure if this is the right way to fix it. https://github.com/apache/incubator-netbeans/blob/b54acfa82d2bc32ee63841191939a044fa0fbcd1/ide/editor.lib2/src/org/netbeans/modules/editor/lib2/DocUtils.java#L212 is actually used only twice, once it is called with offset, docLenght() +1 on the other time offset, docLenght() (this one later causing the excepion to be thrown. I do not think that the intent of the two validation would be different. Changing the validation to docLenght() +1 in both calls, removes the exception. Though I'm not sure if that would be the right solution either. unfortunately the hg.netbeans.org is down so I can't check the code why is it called so different in those cases.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
