 getData of the chart should be nullable. At some point of time it can be null which will result in app crashing.  Commit is here: https://github.com/AppDevNext/AndroidChart/pull/170/commits/7a9d1780ddd0bfbbc52717845749a79c72d97b68#diff-1f5f4cb0c731f19e1875d6ce6640fad605f51bad09f5238d07befd1752b77c89