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

Bug 338662

Summary: ModelDescriptorRegistryInitializer must ignore files that don't exist
Product: [Automotive] Sphinx Reporter: Stephan Eberle <stephaneberle9>
Component: CoreAssignee: Stephan Eberle <stephaneberle9>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: sebastian.benz
Version: 0.7.0   
Target Milestone: 0.7.0   
Hardware: All   
OS: All   
Whiteboard:

Description Stephan Eberle CLA 2011-03-02 08:24:12 EST
ModelDescriptorRegistryInitializer is there for traversing the workspace, detecting all files with model content and creating corresponding IModelDescriptors in the ModelDescriptorRegistry.

= Problem description =
The current implementation creates IModelDescriptors regardless whether the encountered model files actually exist or not. This may lead to an inappropriate initialization of the ModelDescriptorRegistry.

= Resolution approach = 
Add a file exists check before calling ModelDescriptorRegistry.INSTANCE.addModel(file) in ModelDescriptorRegistryInitializer, line 63.
Comment 1 Stephan Eberle CLA 2011-03-02 09:04:23 EST
Fixed as proposed in description.
Comment 2 Balazs Grill CLA 2021-07-14 02:15:04 EDT
Mass-closing Resolved tickets