From: hristov Date: Sun, 17 Jun 2007 20:42:56 +0000 (+0000) Subject: Fix copy ctor in case there is no stored pads (Laurent) X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=76305a4a965bcf80934ff56d18ce01ca06fd5ec1;p=u%2Fmrichter%2FAliRoot.git Fix copy ctor in case there is no stored pads (Laurent) --- diff --git a/MUON/AliMUONCluster.cxx b/MUON/AliMUONCluster.cxx index c44a65465a2..b8ead010399 100644 --- a/MUON/AliMUONCluster.cxx +++ b/MUON/AliMUONCluster.cxx @@ -203,7 +203,11 @@ AliMUONCluster::Copy(TObject& obj) const /// TObject::Copy(obj); AliMUONCluster& dest = static_cast(obj); - dest.fPads = static_cast(fPads->Clone()); + dest.fPads = 0x0; + if ( fPads ) + { + dest.fPads = static_cast(fPads->Clone()); + } dest.fHasPosition = fHasPosition; dest.fPosition = fPosition; dest.fPositionError = fPositionError;