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

Bug 367872

Summary: NPE in JavaEERefactoringParticipant when deleting EJB project with EJB jar client and without EAR
Product: [WebTools] WTP Java EE Tools Reporter: Roberto Sanchez Herrera <shr31223>
Component: jst.j2eeAssignee: Roberto Sanchez Herrera <shr31223>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: ccc, makandre
Version: 3.2.5Flags: cbridgha: review+
Target Milestone: 3.2.5 P   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 367331    
Bug Blocks:    
Attachments:
Description Flags
Proposed patch (R3_2_5_patches) none

Description Roberto Sanchez Herrera CLA 2012-01-04 11:34:59 EST
Bug to backport fix to WTP 3.2.5P

+++ This bug was initially created as a clone of Bug #367331 +++

The bug 365653 allows the possibility to have an EJB project with EJB client outside an EAR. If you have this scenario, and you try to delete the EJB project, you will see the following NPE:

java.lang.NullPointerException
	at org.eclipse.jst.javaee.ltk.core.participant.JavaEERefactoringParticipant.createChange(JavaEERefactoringParticipant.java:61)
	at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.createChange(ProcessorBasedRefactoring.java:308)
	at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:124)
	at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:209)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
	at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Comment 1 Roberto Sanchez Herrera CLA 2012-01-04 11:47:01 EST
Created attachment 209025 [details]
Proposed patch (R3_2_5_patches)

Patch created using R3_2_5_patches
Comment 2 Chuck Bridgham CLA 2012-01-05 17:05:57 EST
approved
Comment 3 Roberto Sanchez Herrera CLA 2012-01-20 12:40:40 EST
Code committed and released to R3_2_5_patches. Resolving bug.