Bugfix: Check tempDoc in custom control content_getFiles and redirect to page "Error" if null:
action="openDocument">
var tempDoc:NotesDocument = tempView.getDocumentByKey(param.AccessID);
if (!tempDoc) {
context.redirectToPage("Error");
}
return tempDoc==null ? null : tempDoc.getUniversalID();}]]>