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

Bug 341340

Summary: Workflows can't be launched on git-cleaned project
Product: [Modeling] EMFT Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: MWEAssignee: Project Inbox <emft-mwe-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: unspecifiedFlags: sebastian.zarnekow: indigo+
Target Milestone: M7   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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.