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

Bug 322795

Summary: NullPointerExceptions with incomplete modules
Product: [Modeling] Acceleo Reporter: Laurent Goubet <laurent.goubet>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: stephane.begaudeau
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Laurent Goubet CLA 2010-08-16 10:41:01 EDT
When saving an Acceleo module with empty "name" features (for the module, for templates, for queries...) the Acceleo Builder fails in NPE and StringIndexOutOfBoundsExceptions.

This could be avoided by not setting empty "name" values in the CST2ASTConverter.
Comment 1 Stephane Begaudeau CLA 2010-09-13 11:44:00 EDT
Contributed and available in Acceleo 3.1.0 M2

It should be noted that with this correction, every "getName()" on a template, query, module, macro or variable can now return null, thus this patch will create several NPE that will need to be corrected. It may not prevent OCL from having some trouble that would throw some NPE but it will appear in the case where we would resolve a module that is completely invalid.