From 6c826efc84f8c27034370c4ccf97e6eb67c886fd Mon Sep 17 00:00:00 2001
From: Olivier Couet <Olivier.Couet@cern.ch>
Date: Wed, 12 Oct 2011 14:39:54 +0000
Subject: [PATCH] Fix Coverty report #33303

git-svn-id: http://root.cern.ch/svn/root/trunk@41367 27541ba8-7e3a-0410-8455-c3a389f83636
---
 hist/histpainter/src/THistPainter.cxx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hist/histpainter/src/THistPainter.cxx b/hist/histpainter/src/THistPainter.cxx
index 8881cbba2d5..1ad029660d8 100644
--- a/hist/histpainter/src/THistPainter.cxx
+++ b/hist/histpainter/src/THistPainter.cxx
@@ -5634,7 +5634,8 @@ void THistPainter::PaintH3(Option_t *option)
 
    // Draw axis
    view->SetOutlineToCube();
-   view->GetOutline()->Paint(option);
+   TSeqCollection *ol = view->GetOutline();
+   if (ol) ol->Paint(option);
    Hoption.System = kCARTESIAN;
    TGaxis *axis = new TGaxis();
    PaintLegoAxis(axis,90);
-- 
GitLab