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

Bug 345166

Summary: ModelValidation fails with NullPointerException if no Quickfixes have been defined.
Product: [Modeling] Epsilon Reporter: Stefan <st.hennig>
Component: CoreAssignee: Dimitris Kolovos <dkolovos>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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