-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE in clipboard copy #573
Comments
Mm... I implemented that class in #553 as a way to make it easier for others to implement custom objects in the area. However, I later realized in #550 (which was created before #553 but merged after it) that such an approach wouldn't work because sometimes a segment is reduced to an empty one, but isn't the singleton used in that class. (This is also partly why I proposed #567: once a style is separated from a segment, one can use an |
Have another probably related NPE caused by commit a2aa881 (same commit as mentioned in my first post) when doing drag-and-drop text. It works when I checkout the previous commit. Currently, I can reproduce it only in Markdown Writer FX but not in JavaKeywords demo...
|
After some debugging, the problem seems to be that |
Ok, found the problem by comparing the old implementation with the new one. It is in both return seg == empty || start == end
? empty
: realSubSequence(seg, start, end); The So it is important to invoke I'll file a PR... |
fix issue #573: NPE in clipboard copy
Closed by #578 |
I get an NPE when pressing
Ctrl+C
, but only if the selection includes a line separator and ends at the beginning of a line.This is a regression. Used 0.7-M3 before where it worked. So I checked out various commits to find out the commit that broke it. It is commit a2aa881. It works when I checkout the previous commit.
To reproduce, run this little app and press
Ctrl+C
:The NPE is:
The text was updated successfully, but these errors were encountered: