Community
Participate
Working Groups
Created attachment 99666 [details] fixing patch. Hi Christian, While adopting M7, some NPE's are thrown in my testCases due to an OperationCallExp didn't have a reference to the Operation. The cause is that OperationCallExpOperations.checkArgumentCount doesn't check if the referred operation is null. Maybe this restriction should n't checked if there is no referredOperation. Maybe another kind of error could be thrown. Take into account that OCL's AS says that the referredOperation is optional. At least a null-safe check is needed when checking checkArgumentCount restriction. That is what the attatched patch does.... Cheers, Adolfo.
Patch committed to CVS HEAD (1.2 branch). Thanks for the contribution! BTW, I also added a new JUnit test case for operation-call expressions without operations to the ExpressionsValidatorTest class. Patches including JUnit tests will be even more appreciated than patches with fixes :-)
Ok As far as possible, I will try to attatch JUnit test cases. I hope not getting lost in all that amount of test cases you have, and create them in the proper place ;). Cheers, Adolfo.
Closing after over 18 months in resolved state.