Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345166 - ModelValidation fails with NullPointerException if no Quickfixes have been defined.
Summary: ModelValidation fails with NullPointerException if no Quickfixes have been de...
Status: CLOSED FIXED
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dimitris Kolovos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-09 12:10 EDT by Stefan CLA
Modified: 2012-02-06 10:59 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan CLA 2011-05-09 12:10:14 EDT
After updating Epsilon to version 0.9.0 recently, my model validations always fails due to a NullPointerException. In class org.eclipse.epsilon.evl.EvlModule at line 135, as far as I know, the statement is doing something with the Quickfixes. The surrounding if-conditional has been commented out:

//if (context.hasFixes() && fixer != null) {
    fixer.fix(this);
//}

Thererfore, if someone does not make use of Quickfixes in his/her validation rules, this causes a NullPointerException.

Checking out the source code from SVN and removing the comments makes everything working as expected.
Comment 1 Dimitris Kolovos CLA 2011-07-25 06:49:11 EDT
This has now been fixed in the SVN.
Comment 2 Dimitris Kolovos CLA 2011-07-25 08:17:52 EDT
Fixed in 0.9.1