From dcfdc8ccbfde328e3e219fd03dc5a502ded06110 Mon Sep 17 00:00:00 2001 From: Patrick Linstruth <patrick@deltecent.com> Date: Mon, 10 Dec 2018 07:00:13 -0800 Subject: [PATCH] Fixed a bug that was causing rdairplay(1) to segfault when no log was loaded. --- ChangeLog | 3 +++ lib/rdlogplay.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1e71c8cd..119daba1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/lib/rdlogplay.cpp b/lib/rdlogplay.cpp index 53f27d9f..5242e4f9 100644 --- a/lib/rdlogplay.cpp +++ b/lib/rdlogplay.cpp @@ -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);