]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/util/AliHLTRawReaderPublisherComponent.cxx
handle missing data headers in AliRawReaderPiublisherComponent; code cleanup and...
[u/mrichter/AliRoot.git] / HLT / BASE / util / AliHLTRawReaderPublisherComponent.cxx
index e552133bce90e75ae0408bcb488bc50806aabccf..4f77695f954cccf296a94f0374385b24fbba034e 100644 (file)
@@ -226,8 +226,10 @@ int AliHLTRawReaderPublisherComponent::GetEvent(const AliHLTComponentEventData&
     list<int> processedIds;
     while (pRawReader->ReadHeader() && (iResult>=0 || iResult==-ENOSPC)) {
       const AliRawDataHeader* pHeader=pRawReader->GetDataHeader();
-      assert(pHeader!=NULL);
-      if (pHeader==NULL) continue;
+      if (pHeader==NULL) {
+       HLTError("can not get data header from RawReader, skipping data block ...");
+       continue;
+      }
       unsigned int readSize=pRawReader->GetDataSize()+sizeof(AliRawDataHeader);
       int id=pRawReader->GetEquipmentId();
       AliInfo(Form("got header for id %d, size %d", id, readSize));