diff --git a/OsmAnd/src/net/osmand/plus/myplaces/TrackSegmentFragment.java b/OsmAnd/src/net/osmand/plus/myplaces/TrackSegmentFragment.java index 4af4de1cf4..833dc76ba6 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/TrackSegmentFragment.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/TrackSegmentFragment.java @@ -1296,7 +1296,7 @@ public class TrackSegmentFragment extends OsmAndListFragment { } void updateChart(LineChart chart) { - if (chart != null) { + if (chart != null && !chart.isEmpty()) { if (gpxItem.chartMatrix != null) { chart.getViewPortHandler().refresh(new Matrix(gpxItem.chartMatrix), chart, true); }