diff --git a/src/components/bar.cpp b/src/components/bar.cpp index f257a201..ddb3a7dc 100644 --- a/src/components/bar.cpp +++ b/src/components/bar.cpp @@ -369,7 +369,7 @@ void bar::parse(const string& data, bool force) { m_renderer->begin(); - if (m_tray->settings().configured_slots) { + if (m_tray && m_tray->settings().configured_slots) { if (m_tray && m_tray->settings().align == alignment::LEFT) { m_renderer->reserve_space(edge::LEFT, m_tray->settings().configured_w); } else if (m_tray && m_tray->settings().align == alignment::RIGHT) {