[
https://issues.apache.org/jira/browse/PIVOT-835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187758#comment-13187758
]
Sandro Martini edited comment on PIVOT-835 at 1/17/12 5:09 PM:
---------------------------------------------------------------
Hi Lukas,
just committed into trunk test cases, and I sorry to say that the issue is real
even in Windows, so maximum priority.
For first tests, I see that in TextPaneSkin sometimes I have
leadingSelectionBounds == null, and other times trailingSelectionBounds ==
null, but I don't think the wrong stuff is inside the getCharacterBounds(),
could be something related to how key arrows are managed (and set some
attributes), inside the keyPressed() method.
Only check for both variable not null remove the NPE but repaints are not
right, so we need to look deeply at this (I and others).
And of course this is an important and urgent fix to do.
Thank you for now.
was (Author: smartini):
Hi Lukas,
just committed into trunk test cases, and I sorry to say that the issue is real
even in Windows, so maximum priority.
We'll look at this (I and others) asap.
Thank you for now.
> TextPane is unusable in 2.0.1 release
> -------------------------------------
>
> Key: PIVOT-835
> URL: https://issues.apache.org/jira/browse/PIVOT-835
> Project: Pivot
> Issue Type: Bug
> Components: wtk
> Affects Versions: 2.0.1
> Environment: GNU/Linux, SUN JDK 1.7 & 1.6
> Reporter: Lukas Machacek
> Fix For: 2.0.2
>
> Attachments: TextPaneExample.java, textPaneExample_window.bxml
>
>
> Hi all,
> I'm facing loss of functionality in TextPane component after upgrade of Pivot
> from 2.0 on 2.0.1 version (Sandro's last build from 8.1.2012).
> You can try it in this simple example. Click into first line, press Enter
> key, cursor goes on new line but from now it is impossible to write any text
> and on each press of arrow Up or Down key it throws NullPointerException:
> java.lang.NullPointerException
> at
> org.apache.pivot.wtk.skin.TextPaneSkin.updateSelection(TextPaneSkin.java:1168)
> at
> org.apache.pivot.wtk.skin.TextPaneSkin.selectionChanged(TextPaneSkin.java:1117)
> at
> org.apache.pivot.wtk.TextPane$TextPaneSelectionListenerList.selectionChanged(TextPane.java:199)
> at org.apache.pivot.wtk.TextPane.setSelection(TextPane.java:736)
> at
> org.apache.pivot.wtk.skin.TextPaneSkin.keyPressed(TextPaneSkin.java:926)
> ...
> Example BXML and Java files are attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira