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

Bug 397030

Summary: getModelContext() in EMFStoreProvider should not throw IllegalArgumentException
Product: [Modeling] ECP Reporter: Tobias Verhoeven <t.s.verhoeven>
Component: CommonAssignee: Tobias Verhoeven <t.s.verhoeven>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.0.0   
Target Milestone: 1.0.0RC1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch for catching IllegalArgumentException eneufeld: iplog+

Description Tobias Verhoeven CLA 2012-12-20 13:22:15 EST
getModelContext(Object element) in EMFStoreProvider should not throw an IllegalArgumentException if no modelContext can be found for
the given element.
Comment 1 Tobias Verhoeven CLA 2012-12-20 13:25:01 EST
Created attachment 224970 [details]
patch for catching IllegalArgumentException

Instead of throwing an IllegalArgumentException "null" is returned.

I hereby confirm that the code of the patch/enhancement was written entirely on my own and I agree to contribute the code to Eclipse under the terms of the EPL.

Tobias Verhoeven