Bug 521198 - Potential NPE due to wrong package registration
Summary: Potential NPE due to wrong package registration
Status: UNCONFIRMED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows NT
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-21 10:15 EDT by Jelle Schuhmacher CLA
Modified: 2017-08-28 03:30 EDT (History)
1 user (show)

See Also:


Attachments
Proposed patch (3.89 KB, application/octet-stream)
2017-08-21 10:15 EDT, Jelle Schuhmacher CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jelle Schuhmacher CLA 2017-08-21 10:15:28 EDT
Created attachment 269917 [details]
Proposed patch

I forgot to register some required meta-models during a maven build in the pom.xml files for my project. Instead of generating an error message it crashed the build with an NPE.

A patch is attached that will at least allow the build to finish. It will show messages like:

 Cannot find operation (someOperation(null)) for the type (null)

instead of crashing.
Comment 1 Yvan Lussaud CLA 2017-08-28 03:30:27 EDT
Thank you for your patch. Do you have a stack trace of the issue please ? We should not a null argument in the first place... May be their is an other problem.