Bug fix for missing DCS update data block.
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Apr 2011 14:40:04 +0000 (14:40 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Apr 2011 14:40:04 +0000 (14:40 +0000)
HLT/BASE/AliHLTComponent.cxx

index b6deff0..7153c62 100644 (file)
@@ -2017,7 +2017,7 @@ int AliHLTComponent::ProcessEvent( const AliHLTComponentEventData& evtData,
     }
     if (indexUpdtDCSEvent>=0 || fEventType==gkAliEventTypeReadPreprocessor) {
       TString modules;
-      if (fpInputBlocks[indexUpdtDCSEvent].fPtr!=NULL && fpInputBlocks[indexUpdtDCSEvent].fSize>0) {
+      if (indexUpdtDCSEvent>=0 && fpInputBlocks[indexUpdtDCSEvent].fPtr!=NULL && fpInputBlocks[indexUpdtDCSEvent].fSize>0) {
        modules.Append(reinterpret_cast<const char*>(fpInputBlocks[indexUpdtDCSEvent].fPtr), fpInputBlocks[indexUpdtDCSEvent].fSize);
       }
       HLTDebug("received preprocessor update command: detectors %s", modules.IsNull()?"ALL":modules.Data());