more null checks for statementcontroller