messageRepository is not initialized.