From b706722c592f9be1e69782a637bce1cd6ca364c3 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 5 Jan 2014 19:16:49 +0900 Subject: [PATCH] Fix unitest crash --- src/MultiDiskAdaptor.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MultiDiskAdaptor.cc b/src/MultiDiskAdaptor.cc index 1d43cb85..3ca64356 100644 --- a/src/MultiDiskAdaptor.cc +++ b/src/MultiDiskAdaptor.cc @@ -278,7 +278,9 @@ void MultiDiskAdaptor::closeFile() dwent->closeFile(); } } - getRequestGroupMan()->reduceNumOfOpenedFile(n); + if(getRequestGroupMan()) { + getRequestGroupMan()->reduceNumOfOpenedFile(n); + } } namespace {