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

Bug 220734

Summary: Rename Java project refactoring throws NPE if manifest.mf present and first try
Product: [Eclipse Project] PDE Reporter: Joonas Reynders <joonas.reynders>
Component: UIAssignee: Benjamin Cabé <contact>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: caniszczyk, contact, darin.eclipse
Version: 3.3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Joonas Reynders CLA 2008-02-28 07:20:49 EST
Build ID: 3.3.1

Steps To Reproduce:
1.Create a new java project
2.To this project create META-INF/MANIFEST.MF with anything as content (except Bundle-SymbolicName)
3.Right click the project -> refactor -> rename, give a new name, click ok
4. NullPointerException is thrown
5. Try again and there is no problem


More information:
You (probably) need to have PDE plugins installed to reproduce this. What happens is that during first rename try PDE object ContainerRenameParticipant tries to read a value "Bundle-SymbolicName" from file META-INF/MANIFEST.MF. If not found, NPE is thrown.
Comment 1 Darin Wright CLA 2008-02-28 09:12:17 EST
Do you have the stack trace/log entry to add to ths bug report?
Comment 2 Benjamin Cabé CLA 2008-03-07 18:02:41 EST
Chris, would you please close this one ; it is a duplicate of bug 206460 :)
Comment 3 Chris Aniszczyk CLA 2008-03-07 18:06:07 EST
Thanks Ben!
Comment 4 Benjamin Cabé CLA 2008-03-07 18:08:07 EST

*** This bug has been marked as a duplicate of bug 206460 ***