Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332345 - CTRL+Z (Undo) after CTRL+X (Cut) when using "Compare With" -> "Each Other" raises "java.lang.NullPointerException"
Summary: CTRL+Z (Undo) after CTRL+X (Cut) when using "Compare With" -> "Each Other" ra...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-10 16:32 EST by ltx71cm CLA
Modified: 2020-05-14 11:44 EDT (History)
4 users (show)

See Also:


Attachments
Requested stack trace from error log (4.64 KB, patch)
2010-12-10 17:51 EST, ltx71cm CLA
no flags Details | Diff
patch (2.05 KB, patch)
2010-12-13 21:41 EST, xu jiaxi CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ltx71cm CLA 2010-12-10 16:32:32 EST
-- Configuration Details --
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.php.product)
Installed Features:
 org.eclipse.platform 3.6.1.r361_v20100909-9gF78GrkFqw7GrsZnvz0JWNTeb6fue6896L
Comment 1 Pascal Rapicault CLA 2010-12-10 17:28:08 EST
Please provide a stack trace. You should be able to see it in opening the "error log" view.
Comment 2 ltx71cm CLA 2010-12-10 17:51:31 EST
Created attachment 185010 [details]
Requested stack trace from error log

Sorry I need to make a correction, it's not a "NullPointerDereference" error, it's a "NullPointerException". I just tested a few more times and the error is reproducible by doing as mentioned in the bug title.
Comment 3 Remy Suen CLA 2010-12-11 05:56:40 EST
Comment on attachment 185010 [details]
Requested stack trace from error log

What kind of files are you editing? Does it happen for regular .txt files?
Comment 4 ltx71cm CLA 2010-12-11 06:01:23 EST
(In reply to comment #3)
> (From update of attachment 185010 [details])
> What kind of files are you editing? Does it happen for regular .txt files?

I'm editing .php files.

I just tested with plain .txt and .css files, neither of which prompted the error.

After testing the problem seems to be with .php files only.
Comment 5 xu jiaxi CLA 2010-12-13 21:41:13 EST
Created attachment 185103 [details]
patch
Comment 6 xu jiaxi CLA 2010-12-15 02:21:03 EST
This bug will also be happened when comparing with the file checked out from SVN repository.
We need another patch to fix it.
Comment 7 Zhongwei Zhao CLA 2011-01-10 01:35:48 EST
fixed,thanks Xu!
Comment 8 Sylvia Tancheva CLA 2011-08-05 09:55:36 EDT
Verified.
Ilina Stefanova