HueSeekBar icon indicating copy to clipboard operation
HueSeekBar copied to clipboard

Nullpointer exception

Open jeroenbeuz opened this issue 7 years ago • 0 comments

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.

jeroenbeuz avatar Nov 09 '17 21:11 jeroenbeuz