Skip to content

NullPointerException on Slider's invalidate() method #128

@itsalltoomuch

Description

@itsalltoomuch

I face this problem when running the app on old android device ( api level <11 )

Caused by: java.lang.NullPointerException
at com.gc.materialdesign.views.Slider.invalidate(Slider.java:97)
at android.view.View.setBackgroundDrawable(View.java:7626)
at android.view.View.(View.java:2160)
at android.view.View.(View.java:1899)
at android.view.ViewGroup.(ViewGroup.java:286)
at android.widget.RelativeLayout.(RelativeLayout.java:173)
at com.gc.materialdesign.views.CustomView.(CustomView.java:21)
at com.gc.materialdesign.views.Slider.(Slider.java:48)
            at java.lang.reflect.Constructor.constructNative(Native Method)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
            at android.view.LayoutInflater.createView(LayoutInflater.java:505)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
            at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
            at android.view.LayoutInflater.inflate(LayoutInflater.java:276)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions