Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324766 - NPE in JPA Refactoring participant on moving of IType from one package to another
Summary: NPE in JPA Refactoring participant on moving of IType from one package to ano...
Status: RESOLVED WORKSFORME
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M2   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-08 12:07 EDT by Neil Hauge CLA
Modified: 2010-09-20 17:47 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Hauge CLA 2010-09-08 12:07:52 EDT
To reproduce:

- Move any Java class from one package to another package (not sure if a reference to another class needs to be present, but it does not appear so).
- Following error is encountered:

java.lang.NullPointerException
at org.eclipse.jpt.core.internal.refactoring.AbstractJpaMoveJavaElementParticipant.getPersistenceUnit(AbstractJpaMoveJavaElementParticipant.java:270)
at org.eclipse.jpt.core.internal.refactoring.AbstractJpaMoveJavaElementParticipant.createReplaceEdits(AbstractJpaMoveJavaElementParticipant.java:174)
at org.eclipse.jpt.core.internal.refactoring.AbstractJpaMoveJavaElementParticipant.checkConditions(AbstractJpaMoveJavaElementParticipant.java:120)
at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.checkFinalConditions(ProcessorBasedRefactoring.java:257)
at org.eclipse.ltk.core.refactoring.CheckConditionsOperation.run(CheckConditionsOperation.java:85)
at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:121)
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 Karen Butzke CLA 2010-09-17 13:20:59 EDT
I cannot reproduce. Neil were you ever able to figure out why that one project was causing this to happen?
Comment 2 Neil Hauge CLA 2010-09-20 17:47:34 EDT
No...if I look into it further I'll comment here.