Skip to content
Snippets Groups Projects
Commit f4009ab2 authored by Gerardo Ganis's avatar Gerardo Ganis
Browse files

  From Lukasz:
  add protection to fix a crash while reading a file through xroot without a cache in raw mode.


git-svn-id: http://root.cern.ch/svn/root/trunk@37046 27541ba8-7e3a-0410-8455-c3a389f83636
parent 5db329f2
No related branches found
No related tags found
No related merge requests found
...@@ -794,7 +794,7 @@ Bool_t TXNetFile::ReadBuffers(char *buf, Long64_t *pos, Int_t *len, Int_t nbuf) ...@@ -794,7 +794,7 @@ Bool_t TXNetFile::ReadBuffers(char *buf, Long64_t *pos, Int_t *len, Int_t nbuf)
Info("ReadBuffers", "%lld bytes of data read from a list of %d buffers", Info("ReadBuffers", "%lld bytes of data read from a list of %d buffers",
nr, nbuf); nr, nbuf);
if (GetCacheRead()->GetBufferSize() < nr) if (GetCacheRead() && GetCacheRead()->GetBufferSize() < nr)
Info("ReadBuffers", "%lld bytes of data read with a smaller (%d) TFileCacheRead buffer size?", Info("ReadBuffers", "%lld bytes of data read with a smaller (%d) TFileCacheRead buffer size?",
nr, GetCacheRead()->GetBufferSize()); nr, GetCacheRead()->GetBufferSize());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment