summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tkbltGrElemLine.C4
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];
}