Author Topic: Validation error message ...  (Read 2687 times)

meierch

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
  • Modeling we can!
    • View Profile
Validation error message ...
« 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 ....
Regards
Christian

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Validation error message ...
« Reply #1 on: July 26, 2010, 04:59:24 pm »
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

meierch

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
  • Modeling we can!
    • View Profile
Re: Validation error message ...
« Reply #2 on: July 28, 2010, 05:43:34 am »
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
Regards
Christian