Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322795 - NullPointerExceptions with incomplete modules
Summary: NullPointerExceptions with incomplete modules
Status: CLOSED FIXED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-16 10:41 EDT by Laurent Goubet CLA
Modified: 2010-09-13 11:44 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.