You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/11/10 22:50:29 UTC

[GitHub] lkishalmi commented on issue #1012: [NETBEANS-1440] Fixed BadLocationException on triple click to select …

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists