Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341340 - Workflows can't be launched on git-cleaned project
Summary: Workflows can't be launched on git-cleaned project
Status: RESOLVED WORKSFORME
Alias: None
Product: EMFT
Classification: Modeling
Component: MWE (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-30 07:31 EDT by Moritz Eysholdt CLA
Modified: 2011-03-30 07:34 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Eysholdt CLA 2011-03-30 07:31:02 EDT
if I run "git clean -fdX" on a project, hit F5 in Eclipse, wait for the build,  and launch an MWE2-Workflow afterwards, I get the NPE stated below. 

"git clean -fdX" removes all files that are not managed by git form a working directory, including the files matched by .gitignore. In my case, this means the bin/-folder is deleted and the src-gen/-folder is pruned.

As a workaround it helps to Build->Clean on all projects, so I assume that the build didn't finish correctly the first time. 

I'm posting this since I thing that it would be great to
- either get rid of this NPE
- or have a more meaningful error message. 


0    ERROR Mwe2Launcher       - 
java.lang.NullPointerException
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveCrossReferences(EcoreUtil.java:307)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:297)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:78)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:73)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:64)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:55)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Comment 1 Sebastian Zarnekow CLA 2011-03-30 07:33:50 EDT
A fix for this one was pushed some days ago. An IllegalStateException will be thrown if the module cannot be found. Please reopen if the problem persists.