this is not correct. if a NULL sink is returned, m_sink != NULL. with current sink factory we actually never get in this block. The log can be an ERROR log with a slightly different message.