diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-09-19 19:47:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-19 19:47:46 (GMT) |
commit | 102cc58b734175657d3112ccf51f6159bfd04518 (patch) | |
tree | 512948b7a3af2d9b5fe6fa26344efce0f8cb01bb /generic/tkbltGrElemLine.C | |
parent | 7f08010fd631774084562ed14f0622968f3f9a92 (diff) | |
parent | 9f679ee28acf5dd6eb92ed2e32dedfb4283ad8ad (diff) | |
download | blt-102cc58b734175657d3112ccf51f6159bfd04518.zip blt-102cc58b734175657d3112ccf51f6159bfd04518.tar.gz blt-102cc58b734175657d3112ccf51f6159bfd04518.tar.bz2 |
Merge pull request #16 from prs-de/fix-xylowhigh-segfaultv3.2.10
NULL check to prevent segfault
Diffstat (limited to 'generic/tkbltGrElemLine.C')
-rw-r--r-- | generic/tkbltGrElemLine.C | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkbltGrElemLine.C b/generic/tkbltGrElemLine.C index 7b0d2d4..19a572e 100644 --- a/generic/tkbltGrElemLine.C +++ b/generic/tkbltGrElemLine.C @@ -1728,7 +1728,7 @@ void LineElement::mapErrorBars(LineStyle **styleMap) if ((isfinite(x)) && (isfinite(y))) { double high; double low; - if (ops->xError->nValues() > 0) { + if (ops->xError && ops->xError->nValues() > 0) { high = x + ops->xError->values_[ii]; low = x - ops->xError->values_[ii]; } @@ -1795,7 +1795,7 @@ void LineElement::mapErrorBars(LineStyle **styleMap) if ((isfinite(x)) && (isfinite(y))) { double high; double low; - if (ops->yError->nValues() > 0) { + if (ops->yError && ops->yError->nValues() > 0) { high = y + ops->yError->values_[ii]; low = y - ops->yError->values_[ii]; } |