diff --git a/stopwatch.cpp b/stopwatch.cpp index ab68712..2a62ebf 100644 --- a/stopwatch.cpp +++ b/stopwatch.cpp @@ -29,7 +29,9 @@ void StopWatch::updateTimer() // m_timeElapsedLabel->setText(msfloatToHumanReadableString(diff.count())); if (m_elapsed.isValid()) { qint64 ms = m_elapsed.elapsed(); - m_output->setText(msfloatToHumanReadableString(ms)); + if (m_output) { + m_output->setText(msfloatToHumanReadableString(ms)); + } if (m_timer.isActive()) {