Main: fix crash without state file

If no state file is configured, don't chek for state changes.
This commit is contained in:
Max Kellermann 2013-07-30 08:30:56 +02:00
parent a9d2dc6144
commit cd1bb2bafa
1 changed files with 2 additions and 1 deletions

View File

@ -348,7 +348,8 @@ idle_event_emitted(void)
if (flags != 0) if (flags != 0)
instance->client_list->IdleAdd(flags); 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(); state_file->CheckModified();
} }