5.2.20
08/05/2021

[#293] Member m_session not initialized in class MUCRoom
Summary Member m_session not initialized in class MUCRoom
Queue gloox
Queue Version 1.0.23
Type Bug
State Unconfirmed
Priority 1. Low
Owners
Requester alexander.weisner (at) avinotec (dot) de
Created 12/09/2020 (239 days ago)
Due
Updated 12/09/2020 (239 days ago)
Assigned
Resolved

History
12/09/2020 11:57:01 PM alexander (dot) weisner (at) avinotec (dot) de Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Member m_session not initialized in class MUCRoom
Queue ⇒ gloox
Reply to this comment
The member variable m_session is not initialized in the constructor of 
class MUCRoom.
This is my workaround:
   MUCRoom::MUCRoom( ClientBase* parent, const JID& nick, MUCRoomHandler* mrh,
                     MUCRoomConfigHandler* mrch )
     : m_parent( parent ), m_nick( nick ), m_joined( false ), 
m_roomHandler( mrh ),
//AW++
       //m_roomConfigHandler( mrch ), m_affiliation( AffiliationNone 
), m_role( RoleNone ),
       m_roomConfigHandler( mrch ), m_session( NULL ), m_affiliation( 
AffiliationNone ), m_role( RoleNone ),
//AW--
       m_historyType( HistoryUnknown ), m_historyValue( 0 ), m_flags( 0 ),
...