From 5ebffe388a26838e1158a4acab2c5cc06084a084 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 27 Mar 2021 14:09:18 +0100 Subject: [PATCH] Check for file name pointer validity. --- server/TracyView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 0d8e4c81..e3745a7d 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -17847,6 +17847,7 @@ const char* View::SourceSubstitution( const char* srcFile ) const void View::DrawSourceTooltip( const char* filename, uint32_t srcline, int before, int after, bool separateTooltip ) { + if( !filename ) return; if( !SourceFileValid( filename, m_worker.GetCaptureTime(), *this, m_worker ) ) return; m_srcHintCache.Parse( filename, m_worker, *this ); if( m_srcHintCache.empty() ) return;