FIX: fix a crash issue when switch language under debug mode

Change-Id: I901e880601f963ceea433aaec1c455c2698b77f7
(cherry picked from commit 6a0fc275664503a53515d174ef7c71c829db4b14)
This commit is contained in:
lane.wei 2023-04-07 10:07:55 +08:00 committed by Lane.Wei
parent 697a45379f
commit 420fae9bbf
1 changed files with 1 additions and 1 deletions

View File

@ -3269,7 +3269,7 @@ void GUI_App::recreate_GUI(const wxString& msg_name)
// });
//show publish button
if (m_agent->is_user_login() && mainframe) {
if (m_agent && m_agent->is_user_login() && mainframe) {
int identifier;
int result = m_agent->get_user_info(&identifier);
auto publish_identifier = identifier & 1;