Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332345

Summary: CTRL+Z (Undo) after CTRL+X (Cut) when using "Compare With" -> "Each Other" raises "java.lang.NullPointerException"
Product: z_Archived Reporter: ltx71cm
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ilina.s, pascal, silviya, thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Requested stack trace from error log
none
patch none

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