iammert / HueSeekBar

Yet another android seekbar inspired from Philips Hue app
110 stars 27 forks source link

Nullpointer exception #3

Open jeroenbeuz opened 7 years ago

jeroenbeuz commented 7 years ago

First of all thanks for this great library!

Whenever I update the data in my adapter (notifyItemChagned(position)) the HueSeekBar class gives a null reference exception:

java.lang.NullPointerException: Attempt to invoke virtual method 'long android.graphics.Paint.getNativeInstance()' on a null object reference at android.graphics.Canvas.drawRect(Canvas.java)

It happens only when the data in my adapter changes. I have the HueSeekBar in a RecyclerViewAdapter. First load is working perfectly.