calculations causing crash

i have a somewhat complex calculated field, and trying to debug
it is becoming a nightmare.

servoy has crashed without warning a few times today;
in the log file, i find the following line at the top:
ConcurrentModificationExceptionTypeError: Cannot convert null to an object.

  1. could someone explain what would cause this?
  2. will we ever be able to use the debugger to debug
    calculated field scripts?

thanks.
rm.

Hi Robert,

Before using a related value in a calculation please validate the relation itself. That might rule out the “Cannot convert null to an object” message

if(myRelation)  //do calc, only if my relation exists
{
    return ( 5 * 4 *  myRelation.myColumn)
}
else
{
   return 0
}

maarten:

i think that was the problem; one of the related fields
i was trying to access was not valid at the time.

thanks.
rm