From 579a6095599e2483e7e7e2027c6e3dd69ce1e07f Mon Sep 17 00:00:00 2001 From: Frank Li Date: Sun, 21 Aug 2011 01:54:10 +0800 Subject: [PATCH] Fixed issue #851 Windows Explorer Shell Crashed when empty repos fixes issue 851 Signed-off-by: Frank Li --- src/Changelog.txt | 1 + src/Git/gitindex.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Changelog.txt b/src/Changelog.txt index 5cc14d674..34a8b8f03 100644 --- a/src/Changelog.txt +++ b/src/Changelog.txt @@ -4,6 +4,7 @@ * Fixed issue #852: Incorrect current version string in Check For Updates dialog on x86 * Fixed issue #850: 32bit application can't show icon overlay at 64bit system. * Fixed issue #864: Show log crashes when commit with "encoding" in comment exists + * Fixed Issue #851: Windows Explorer Shell Crashed when empty repository = Release 1.7.2.0 = == Features == diff --git a/src/Git/gitindex.h b/src/Git/gitindex.h index 94a82c463..ea012a12d 100644 --- a/src/Git/gitindex.h +++ b/src/Git/gitindex.h @@ -257,7 +257,7 @@ public: { CAutoLocker lock(m_critIndexSec); if(this->find(path) == end()) - return SHARED_INDEX_PTR(); + return SHARED_INDEX_PTR(new CGitIndexList); else return (*this)[path]; } @@ -367,7 +367,7 @@ public: { CAutoLocker lock(m_critTreeSec); if(this->find(path) == end()) - return SHARED_TREE_PTR(); + return SHARED_TREE_PTR(new CGitHeadFileList); else return (*this)[path]; } -- 2.11.4.GIT