From cd1bb2bafa2653e5d4c7c9abf6f464bcdec693c5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 30 Jul 2013 08:30:56 +0200 Subject: [PATCH] Main: fix crash without state file If no state file is configured, don't chek for state changes. --- src/Main.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Main.cxx b/src/Main.cxx index ff957c1ee..47160a575 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -348,7 +348,8 @@ idle_event_emitted(void) if (flags != 0) instance->client_list->IdleAdd(flags); - if (flags & (IDLE_PLAYLIST|IDLE_PLAYER|IDLE_MIXER|IDLE_OUTPUT)) + if (flags & (IDLE_PLAYLIST|IDLE_PLAYER|IDLE_MIXER|IDLE_OUTPUT) && + state_file != nullptr) state_file->CheckModified(); }