mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
fix: Check ptr before accessing
This commit is contained in:
parent
f60dd57092
commit
fbca73a83b
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue