Skip to content

Question: Access through code #11

@CJBH

Description

@CJBH

Hi there!
Awesome idea this. I have a problem though. I am trying to set min, max and value through code but i keep getting Null Pointer Exception. When i set it in XML it works fine. This is what i try:

npYob.setValue(1971);

This is what i get:
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.michaelmuenzer.android.scrollablennumberpicker.ScrollableNumberPicker.setValue(int)' on a null object reference

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