Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: meierch on July 26, 2010, 04:51:03 pm
-
I have created a small set of validation rules following the example in the user manual. This works in general very wll- just from time to time I receive the following error popup:
EA_OnRunConnectorRule: Object reference not set to an instance of an object
I don't know what this means ....
-
That is the equivalent of the nullpointer exception.
It means that you are trying to get an attribute, or execute an operation on a variable that hasn't been initialised. (or has been initialised with null).
Add something like "if myVar is not null then..."
Geert
-
Thanks Geert
That was helpfull! I found the bug - it was indeed a variable with a null value. We have rules regarding the elements conveyed on information flows. I did some SQL stuff to retrieve the conveyed elements to validate them - in some cases I did really get a null element.
Regards
Christian
;D