Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367331 - NPE in JavaEERefactoringParticipant when deleting EJB project with EJB jar client and without EAR
Summary: NPE in JavaEERefactoringParticipant when deleting EJB project with EJB jar cl...
Status: RESOLVED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3.2   Edit
Assignee: Roberto Sanchez Herrera CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 367872
  Show dependency tree
 
Reported: 2011-12-21 10:10 EST by Roberto Sanchez Herrera CLA
Modified: 2012-01-04 11:34 EST (History)
2 users (show)

See Also:
cbridgha: review+


Attachments
Proposed patch (1.25 KB, patch)
2011-12-21 13:02 EST, Roberto Sanchez Herrera CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roberto Sanchez Herrera CLA 2011-12-21 10:10:07 EST
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 2011-12-21 13:02:50 EST
Created attachment 208700 [details]
Proposed patch

Proposed patch that can be applied to R3_3_maintenance and HEAD for WTP 3.3.2 and 3.4
Comment 2 Chuck Bridgham CLA 2012-01-04 10:34:06 EST
approved
Comment 3 Roberto Sanchez Herrera CLA 2012-01-04 11:25:52 EST
Code committed to R3_3_maintenance and HEAD for WTP 3.3.2 and 3.4. Resolving bug