Added check if the OperatorContext is null.