m_client is initialized with setter function, so add please ASSERT(m_client != NULL) there;