Skip to content
Snippets Groups Projects
Commit c56e6e6a authored by Fons Rademakers's avatar Fons Rademakers
Browse files

add missing protection.

git-svn-id: http://root.cern.ch/svn/root/trunk@29633 27541ba8-7e3a-0410-8455-c3a389f83636
parent 6470b0fd
No related branches found
No related tags found
No related merge requests found
......@@ -402,7 +402,7 @@ void THStack::Draw(Option_t *option)
// For stacks of 1D histograms the axis need to be redrawn because the
// tick marks have been very likely erased.
if (fHists->GetSize()) {
if (fHists && fHists->GetSize()) {
TH1* h = (TH1*)fHists->At(0);
if (h->GetDimension()==1 && !strstr(opt.Data(),"lego"))
gPad->RedrawAxis();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment