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 {