From 155c9de767cbc6b78ddadd938c422aad0a3b8038 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 21 Sep 2017 01:41:52 +0200 Subject: [PATCH] Fix crash. --- server/TracyView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index ca9be03f..b4bfb8f0 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -602,6 +602,7 @@ void View::DrawFrames() } const auto zitbegin = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvStart ); + if( zitbegin == m_frames.end() ) return; const auto zitend = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvEnd ); auto zbegin = (int)std::distance( m_frames.begin(), zitbegin ); @@ -684,6 +685,7 @@ void View::DrawZones() } const auto zitbegin = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvStart ); + if( zitbegin == m_frames.end() ) return; const auto zitend = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvEnd ); auto zbegin = (int)std::distance( m_frames.begin(), zitbegin );