]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Additional protection needed by AliRawReaderMemory (Henrik)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 29 Feb 2008 22:35:05 +0000 (22:35 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 29 Feb 2008 22:35:05 +0000 (22:35 +0000)
ITS/AliITSRawStreamSPD.cxx

index aa39fa1cab17b2791ec52920aa8eccb5fed3de82..a1eade0b08eb9e8becaccf99db7867d089816726 100644 (file)
@@ -13,7 +13,7 @@
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/* $Id:  $ */
+/* $Id$ */
 
 ///////////////////////////////////////////////////////////////////////////////
 ///
@@ -105,9 +105,12 @@ Bool_t AliITSRawStreamSPD::ReadNextShort() {
       return kFALSE;
     }
     fData = fDataChar3+(fDataChar4<<8);
-    if ((*fRawReader->GetEventId())!=fPrevEventId) { // if new event...
-      NewEvent();
-      fPrevEventId=(*fRawReader->GetEventId());
+    const UInt_t *intPtr = fRawReader->GetEventId();
+    if (intPtr!=0) {
+      if (*intPtr!=fPrevEventId) { // if new event...
+       NewEvent();
+       fPrevEventId=*intPtr;
+      }
     }
     fFirstWord=kFALSE;
   }