FIX:Fixed crash issue on mac without plugin

Change-Id: I19f82037c58d61c3286f6a029b007e1199fb87cf
This commit is contained in:
tao wang 2022-11-14 18:16:33 +08:00 committed by Lane.Wei
parent f64b42e3d2
commit 0713945e02

View file

@ -2370,7 +2370,7 @@ void MainFrame::init_menubar_as_editor()
m_menubar->Append(helpMenu, wxString::Format("&%s", _L("Help")));
SetMenuBar(m_menubar);
if (wxGetApp().getAgent()->is_user_login()) {
if (wxGetApp().getAgent() && wxGetApp().getAgent()->is_user_login()) {
int identifier;
int result = wxGetApp().getAgent()->get_user_info(&identifier);
auto publish_identifier = identifier & 1;