Fixed a bug that was causing rdairplay(1) to segfault when no log was loaded.

This commit is contained in:
Patrick Linstruth 2018-12-10 07:00:13 -08:00
parent d2fc3f9b80
commit dcfdc8ccbf
2 changed files with 4 additions and 1 deletions

View File

@ -18094,3 +18094,6 @@
2018-11-30 Patrick Linstruth <patrick@deltecent.com>
* Fixed regression with rdimport(1) that threw SQL errors when
importing into an existing cart.
2018-12-10 Patrick Linstruth <patrick@deltecent.com>
* Fixed a bug that was causing rdairplay(1) to segfault when no
log was loaded.

View File

@ -2719,7 +2719,7 @@ void RDLogPlay::Playing(int id)
emit played(line);
AdvanceActiveEvent();
UpdatePostPoint();
if (isRefreshable()&&play_log->autoRefresh()) {
if (play_log!=NULL&&isRefreshable()&&play_log->autoRefresh()) {
refresh();
}
LogPlayEvent(logline);