currentcontroller is not defined

when starting Servoy (5.2.6) i get an exception “currentcontroller” is not defined. the code is below

function _aytutl_formHierarchyCall() {
var $currentFormName = currentcontroller.getName()
}

It looks like when starting servoy some context is not properly initialized. I can write an try/catch on every currentcontroller but that is not a good alternative.

Regards,

Danny Richardson

that is a global method?
how is that global method called?
Do you have a full stackstacktrace (a java stacktrace besides the js one)?