Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367872 - 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.2.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.5 P   Edit
Assignee: Roberto Sanchez Herrera CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on: 367331
Blocks:
  Show dependency tree
 
Reported: 2012-01-04 11:34 EST by Roberto Sanchez Herrera CLA
Modified: 2012-01-20 12:40 EST (History)
2 users (show)

See Also:
cbridgha: review+


Attachments
Proposed patch (R3_2_5_patches) (1.25 KB, patch)
2012-01-04 11:47 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 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.