From 524c004aaee32fe34067197b963f5775f1289d56 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 5 Dec 2011 15:13:45 +0100 Subject: [PATCH] fixed possible null pointer exception Signed-off-by: Sven Strickroth --- src/TortoiseProc/LogDataVector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TortoiseProc/LogDataVector.cpp b/src/TortoiseProc/LogDataVector.cpp index 9617dea51..c8ced88cc 100644 --- a/src/TortoiseProc/LogDataVector.cpp +++ b/src/TortoiseProc/LogDataVector.cpp @@ -82,7 +82,7 @@ void CLogDataVector::ClearAll() int CLogDataVector::ParserFromLog(CTGitPath *path ,int count ,int infomask,CString *from,CString *to) { // only enable --follow on files - if (path->IsDirectory() && (infomask & CGit::LOG_INFO_FOLLOW)) + if ((path == NULL || path->IsDirectory()) && (infomask & CGit::LOG_INFO_FOLLOW)) infomask = infomask ^ CGit::LOG_INFO_FOLLOW; CString hash; -- 2.11.4.GIT