From 7eefc7b096864eb5dd3361cccb1cb3bac913fb27 Mon Sep 17 00:00:00 2001 From: Alja Mrak-Tadel Date: Fri, 21 Aug 2015 10:45:18 -0700 Subject: [PATCH] Fix error from the previous commit. --- src/XrdFileCache/XrdFileCacheFile.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/XrdFileCache/XrdFileCacheFile.cc b/src/XrdFileCache/XrdFileCacheFile.cc index 762406454da..084073f4b4f 100644 --- a/src/XrdFileCache/XrdFileCacheFile.cc +++ b/src/XrdFileCache/XrdFileCacheFile.cc @@ -506,8 +506,10 @@ int File::Read(char* iUserBuff, long long iUserOff, int iUserSize) clLog()->Dump(XrdCl::AppMsg, "File::Read() u=%p inc_ref_count new %d %s", (void*)iUserBuff, block_idx, lPath()); Block *b = RequestBlock(block_idx, false); // assert(b); + if (!b) { preProcOK = false; break; + } inc_ref_count(b); blks_to_process.push_back(b); m_stats.m_BytesRam++;