From 76305a4a965bcf80934ff56d18ce01ca06fd5ec1 Mon Sep 17 00:00:00 2001 From: hristov Date: Sun, 17 Jun 2007 20:42:56 +0000 Subject: [PATCH] Fix copy ctor in case there is no stored pads (Laurent) --- MUON/AliMUONCluster.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.43.0