diff --git a/Charts/Classes/Charts/ChartViewBase.swift b/Charts/Classes/Charts/ChartViewBase.swift index d121b637f2..a994af20db 100755 --- a/Charts/Classes/Charts/ChartViewBase.swift +++ b/Charts/Classes/Charts/ChartViewBase.swift @@ -417,12 +417,12 @@ public class ChartViewBase: UIView, ChartAnimatorDelegate { if (h == nil) { - delegate!.chartValueNothingSelected!(self); + delegate!.chartValueNothingSelected?(self); } else { // notify the listener - delegate!.chartValueSelected!(self, entry: entry!, dataSetIndex: h!.dataSetIndex, highlight: h!); + delegate!.chartValueSelected?(self, entry: entry!, dataSetIndex: h!.dataSetIndex, highlight: h!); } } }