check for empty m_pBuffer

Change-Id: I90135b6d7780ba8a22fff725a965f0ea7e442707