Bug 515339 - Java Project Refactoring: Redo operation gives NPE
Summary: Java Project Refactoring: Redo operation gives NPE
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.5   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-17 10:40 EDT by Sasmita Acharya CLA
Modified: 2023-07-17 17:30 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sasmita Acharya CLA 2017-04-17 10:40:14 EDT
Steps:
1. Create a Java project with a class having main method.
2. Create a Launch configuration with a shared file(common tab)
3. Run the project and make sure the launch file created in shared file location.
4. Rename the project(with F2)
5. Select Edit>Undo Rename Java Project
6. Select Edit>Redo Rename Java Project > Shows up a error dialog with as below:

'Rename Resource' cannot be redone. 
Reason: The launch configuration "<projectName>" no longer exists.

Upon debug: found that isValid of LaunchConfigurationProjectMainTypeChange, pointing to non-existing Location of Project which has already been moved to new name(redo name). 

I think the project should not been moved before validating the launch config.
Comment 1 Andrey Loskutov CLA 2017-04-17 12:03:11 EDT
You have specified 4.5 as the version - it is not supported anymore. Can you please check if this is still on 4.6.3 or 4.7 M6? Do you want to provide a patch?
Comment 2 Sarika Sinha CLA 2017-04-21 02:04:31 EDT
I can reproduce this in latest 4.7 build as well.
Comment 3 Eclipse Genie CLA 2019-08-04 17:34:34 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Sarika Sinha CLA 2019-08-05 02:54:03 EDT
Not fixed yet.
Comment 5 Eclipse Genie CLA 2021-07-26 11:06:19 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 6 Eclipse Genie CLA 2023-07-17 17:30:39 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.