diff --git a/src/overview/src/NIOverviewGraphView.m b/src/overview/src/NIOverviewGraphView.m index d59cd328e..1c3596cdf 100644 --- a/src/overview/src/NIOverviewGraphView.m +++ b/src/overview/src/NIOverviewGraphView.m @@ -47,6 +47,9 @@ - (void)drawGraphWithContext:(CGContextRef)context { CGFloat xRange = [self.dataSource graphViewXRange:self]; CGFloat yRange = [self.dataSource graphViewYRange:self]; + if (xRange == 0 || yRange == 0) { + return; + } [self.dataSource resetPointIterator];