Fixed upstream. I wonder whether this is the cause or only a symptom of a deeper issue, m_encoder should probably not be null in the first place.