Check for file name pointer validity.

This commit is contained in:
Bartosz Taudul 2021-03-27 14:09:18 +01:00
parent ff6ecef5f3
commit 5ebffe388a
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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;