[ https://issues.apache.org/jira/browse/PIVOT-954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17523410#comment-17523410 ]
Kello Harby commented on PIVOT-954: ----------------------------------- [agario|https://agario.id/] [agario|https://agario.miami/] [agario|https://agar.cc/] [agario|https://agario.org.uk/] [agario|https://agario.boston/] [agario modded|https://agariomodded.com/] [agario private server|https://agarprivateservers.org/] [agario online|https://agarioonline.org/] [agario online|https://agarioonline.live/] [agario private server|https://agarprivateservers.net/] [altyazılı film izle|https://altyazilifilm.cc/] [mmo forum|https://mt2.org/] [metin2 pvp serverler|https://mt2.org/forum/metin2-pvp-serverler/] [pvp serverler|http://emekserverler.com/] [metin2 pvp serverler|http://www.zafer2.com/] [metin2 pvp serverler|http://editsizserverler.org/] [metin2 pvp serverler|http://www.emekserverler.net/] [metin2 pvp serverler|http://emekserverler.com/metin2.html] [wslik pvp serverler|http://wslikserverler.net/] [wslik pvp serverler|https://www.emekserverler.net/wslik.html] [agario unblocked|https://agar.rip/] [agario unblocked|https://agario.nl/] [agario|https://agar.tv/] [agario private server|https://agario.in/] [agario unblocked|https://agariohub.cc/] [io games|https://a99io.com/] [altyazılı film izle|https://altyazilifilm.live/] [okey|https://realokey.com/] [okey oyna|https://onlineokeyoynaa.com/] [okey oyna|https://duzokeyoynaa.com/] [okey oyna|https://canliokeyoynaa.com/] [sohbet|https://www.sohbetk.com/] [okey net|https://okey-net.com/] [ankara okey|https://ankaraokey.org/] [izmir okey|https://izmirokey.com/] [istanbul okey|https://istanbulokey.net/] [agario unblocked|https://agariounblocked.org/] [agario game|https://agariogame.net/] [fnf mods|https://a99io.com/category/fnf-mods.html] > Double click in empty TextArea causes exception > ----------------------------------------------- > > Key: PIVOT-954 > URL: https://issues.apache.org/jira/browse/PIVOT-954 > Project: Pivot > Issue Type: Bug > Components: wtk > Affects Versions: 2.0.4, 2.1 > Environment: All > Reporter: Roger Lee Whitcomb > Assignee: Roger Lee Whitcomb > Priority: Minor > Labels: doubleclick, textarea > Fix For: 2.1, 2.0.5 > > > Start with an empty TextArea, then double click anywhere (which normally > would select the current word), there will be basically an assertion error > from here: > java.lang.IndexOutOfBoundsException: index: index (-1) < min (0) > at > org.apache.pivot.wtk.Component.indexBoundsCheck(Component.java:2861) > at org.apache.pivot.wtk.TextArea.getCharacterAt(TextArea.java:904) > at > org.apache.pivot.wtk.skin.TextAreaSkin.selectSpan(TextAreaSkin.java:969) > at > org.apache.pivot.wtk.skin.TextAreaSkin.mouseClick(TextAreaSkin.java:1023) > The underlying problem is trying to get the character at offset -1 in the > document. > It could also occur in any document in which the first line is empty, and > trying to double click there (with a slightly different stack trace): > java.lang.IndexOutOfBoundsException: index: index (-1) < min (0) > at > org.apache.pivot.wtk.Component.indexBoundsCheck(Component.java:2861) > at org.apache.pivot.wtk.TextArea.getCharacterAt(TextArea.java:904) > at > org.apache.pivot.wtk.skin.TextAreaSkin.selectSpan(TextAreaSkin.java:974) > at > org.apache.pivot.wtk.skin.TextAreaSkin.mouseClick(TextAreaSkin.java:1023) > (This is from the "trunk" version). -- This message was sent by Atlassian Jira (v8.20.1#820001)