Skip to content

Commit 5cc20ee

Browse files
committed
Fix in the Close method
1 parent 376c875 commit 5cc20ee

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Common/Utils/src/TreeStreamRedirector.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ TreeStream& TreeStreamRedirector::operator<<(const char* name)
111111
void TreeStreamRedirector::Close()
112112
{
113113
// flush and close
114-
114+
if (!mDirectory) {
115+
return;
116+
}
115117
TDirectory* backup = gDirectory;
116118
mDirectory->cd();
117119
for (auto& layout : mDataLayouts) {

0 commit comments

Comments
 (0)