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

Avoid null pointer dereferencing (was breaking stressgraphics)

parent 2d7c5a44
No related branches found
No related tags found
No related merge requests found
......@@ -1635,11 +1635,11 @@ L110:
textaxis->SetTextAlign(11);
if (GetLabelFont()%10 < 2) // force TLatex mode in PaintLatex
textaxis->SetTextFont((Int_t)(GetLabelFont()/10)*10+2);
if (!strcmp(fAxis->GetName(),"xaxis")) {
if (fAxis && !strcmp(fAxis->GetName(),"xaxis")) {
xx = xx + fXAxisExpXOffset;
yy = yy + fXAxisExpYOffset;
}
if (!strcmp(fAxis->GetName(),"yaxis")) {
if (fAxis && !strcmp(fAxis->GetName(),"yaxis")) {
xx = xx + fYAxisExpXOffset;
yy = yy + fYAxisExpYOffset;
}
......
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