diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 98458aacc1..87e8f63363 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -6771,7 +6771,8 @@ Plater::Plater(wxWindow *parent, MainFrame *main_frame) bool Plater::Show(bool show) { - wxGetApp().mainframe->show_option(show); + if (wxGetApp().mainframe) + wxGetApp().mainframe->show_option(show); return wxPanel::Show(show); }