Skip to content
Snippets Groups Projects
Commit a5477dc2 authored by Philippe Canal's avatar Philippe Canal
Browse files

Add missing protection in TVirtualHistPainter::HistPainter

git-svn-id: http://root.cern.ch/svn/root/trunk@41387 27541ba8-7e3a-0410-8455-c3a389f83636
parent 8b4a4bf6
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,9 @@ TVirtualHistPainter *TVirtualHistPainter::HistPainter(TH1 *obj) ...@@ -39,6 +39,9 @@ TVirtualHistPainter *TVirtualHistPainter::HistPainter(TH1 *obj)
return 0; return 0;
TVirtualHistPainter::SetPainter(h->GetClass()); TVirtualHistPainter::SetPainter(h->GetClass());
if (!fgPainter) return 0; if (!fgPainter) return 0;
} else {
// fgPainter is still null
return 0;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment