Some additional protections
[u/mrichter/AliRoot.git] / ZDC / AliZDCTrigger.cxx
index 51f17ed23a189e84f52476645fac7a102158f0b0..885ec33250a96cb9a19ec6d2180e32f12df25e05 100644 (file)
@@ -81,7 +81,10 @@ void AliZDCTrigger::Trigger()
    AliZDCDigit digit;
    AliZDCDigit* pdigit = &digit;
    TTree* tD = aZDCLoader->TreeD();
-   if (!tD) cerr<<"AliZDCTrigger: digits tree not found\n";
+   if (!tD) {
+     cerr<<"AliZDCTrigger: digits tree not found\n";
+     return;
+   }
    tD->SetBranchAddress("ZDC", &pdigit);
    //
    Float_t signalZNLeft[2], signalZPLeft[2], signalZDCLeftSum[2];