| Summary: | NPE in SimpleObjectTransfer.nativeToJava on Linux | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Chris Lee <eclipse> | ||||
| Component: | GEF-Legacy GEF (MVC) | Assignee: | Anthony Hunter <ahunter.eclipse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bugs.eclipse.org, nyssen, rudolf.hornig, veronika_irvine | ||||
| Version: | 3.2 | ||||||
| Target Milestone: | 3.4.1 (Ganymede SR1) | ||||||
| Hardware: | PC | ||||||
| OS: | Linux-GTK | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Chris Lee
Created attachment 41058 [details]
patch for the NPE - checks for null before using
I've attached a simple patch for doing the req'd null check.
Veronika, could you comment on the consistency of ByteArrayTransfer here? Chris, when does this happen? Is it when the clipboard contains some other transfer type? Please provide steps to reproduce. I don't understand how a transfer gets invoked unless it's working with bytes that it knows how to read. It happens when the clipboard is empty and we try to get data from the clipboard. The specific problem only happens on Linux, where ByteArrayTransfer returns null if there is no data, compared to Windows where it returns an empty byte array. I have this problem sometimes with Eclipse 3.3 on Linux when I copy-paste. Somebody could apply this patch on the trunk ? Thanks you very much. (In reply to comment #5) > I have this problem sometimes with Eclipse 3.3 on Linux when I copy-paste. > > Somebody could apply this patch on the trunk ? > > Thanks you very much. This happens also when for example some text is copied from Skype to the clipboard. All GEF application that has PasteAction crashes with NPE because of this problem. Committed the requested fix to HEAD and R3_4_maintenance |