Reg. error "Object not initialised

Hi Pioneers,

Yesterday I was checking the caller’s name of the form. Suppose I have 2 forms… A & B. In Init method of form B, I wrote the following code, to check whether it is being called from form A,

Args args = new args();

FormRun caller;


if(element.args().caller().name() == formstr(A))


// perform action


On executing this code, it is giving error as “OBJECT OBJECT IS NOT INITIALISED”

check if it has a caller before accessing its members,

if (element.args() && element.args().caller() && element.args().caller().name())