File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
chartLib/src/main/kotlin/info/appdev/charting/data Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ class CombinedData : BarLineScatterCandleBubbleData<IBarLineScatterCandleBubbleD
113113 }
114114
115115 fun getDataByIndex (index : Int ): BarLineScatterCandleBubbleData <* > {
116- return this .allData.get( index)
116+ return this .allData[ index]
117117 }
118118
119119 override fun notifyDataChanged () {
@@ -131,7 +131,7 @@ class CombinedData : BarLineScatterCandleBubbleData<IBarLineScatterCandleBubbleD
131131 * @return the entry that is highlighted
132132 */
133133 override fun getEntryForHighlight (highlight : Highlight ): Entry ? {
134- if (highlight.dataIndex >= this .allData.size)
134+ if (highlight.dataIndex >= this .allData.size || highlight.dataIndex < 0 )
135135 return null
136136
137137 val data: ChartData <* > = getDataByIndex(highlight.dataIndex)
You can’t perform that action at this time.
0 commit comments