5.2.23
09/22/2023

[#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 Resolved
Priority 1. Low
Owners js (at) camaya (dot) net
Requester alexander.weisner (at) avinotec (dot) de
Created 12/09/2020 (1017 days ago)
Due
Updated 03/17/2023 (189 days ago)
Assigned
Resolved 03/17/2023 (189 days ago)

History
03/17/2023 11:02:53 AM Jakob Schröter Comment #2
State ⇒ Resolved
Assigned to Jakob Schröter
Reply to this comment
Thanks, this is now fixed in svn. Will be in 1.0.26.
12/09/2020 11:57:01 PM alexander (dot) weisner (at) avinotec (dot) de Comment #1
State ⇒ Unconfirmed
Queue ⇒ gloox
Summary ⇒ Member m_session not initialized in class MUCRoom
Type ⇒ Bug
Priority ⇒ 1. Low
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 ),
...