Bug 457246 - Copy/PasteElementHandler classes throw NullPointerException when trying to copy/paste from/to Expressions view
Summary: Copy/PasteElementHandler classes throw NullPointerException when trying to co...
Status: UNCONFIRMED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-12 09:22 EST by Attila Csipak CLA
Modified: 2015-01-14 10:12 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Csipak CLA 2015-01-12 09:22:34 EST
R4E version: 0.20.0.v20130717-1300

I debugged a Java application in debug perspective, stopped at a breakpoint, tried to copy-paste a string from the java editor view to the Expressions view. The paste step threw the following exception:

java.lang.NullPointerException
	at org.eclipse.mylyn.reviews.r4e.ui.internal.commands.handlers.PasteElementHandler$1.run(PasteElementHandler.java:90)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

Trying to copy from (an empty cell in) the Expressions view also throws a similar exception:

java.lang.NullPointerException
	at org.eclipse.mylyn.reviews.r4e.ui.internal.commands.handlers.CopyElementHandler$1.run(CopyElementHandler.java:82)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

Session data:

eclipse.buildId=4.3.2.M20140221-1700
java.version=1.6.0_37
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=hu_HU
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -clean -product org.eclipse.epp.package.java.product
Comment 1 Jacques Bouthillier CLA 2015-01-14 09:55:23 EST
I tried to re-produce the null pointer exception and could not reproduce. I tried on linux and Window environment.

Jacques
Comment 2 Attila Csipak CLA 2015-01-14 10:12:24 EST
There's likely some additional precondition to it. Today I used copypasting against the Expression view several times without the error showing up. Then something changes in the session, and it is consistently reproducable (until I restart Eclipse). If I find out something, I will post it in a new comment.