From 84ead09bde48d7b275004c2438b966f9a1a5cf14 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 29 Dec 2012 04:54:04 +0100 Subject: [PATCH] TGitBlame: Searching on a empty document must not crash the app Signed-off-by: Sven Strickroth --- src/TortoiseGitBlame/TortoiseGitBlameView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TortoiseGitBlame/TortoiseGitBlameView.cpp b/src/TortoiseGitBlame/TortoiseGitBlameView.cpp index 4a46ac67c..80eba56ae 100644 --- a/src/TortoiseGitBlame/TortoiseGitBlameView.cpp +++ b/src/TortoiseGitBlame/TortoiseGitBlameView.cpp @@ -1748,6 +1748,9 @@ LRESULT CTortoiseGitBlameView::OnFindDialogMessage(WPARAM wParam, LPARAM lParam) { ASSERT(m_pFindDialog != NULL); + if (m_CommitHash.empty()) + return 0; + // If the FR_DIALOGTERM flag is set, // invalidate the handle identifying the dialog box. if (m_pFindDialog->IsTerminating()) -- 2.11.4.GIT