Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro on use programmatically #18

Open
d3roch4 opened this issue Jul 5, 2019 · 0 comments
Open

Erro on use programmatically #18

d3roch4 opened this issue Jul 5, 2019 · 0 comments

Comments

@d3roch4
Copy link

d3roch4 commented Jul 5, 2019

code:
NumberPicker numberPicker = new NumberPicker(opcionais.getContext());
numberPicker.setValue(itens.get(i).quantidade);

Error:
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference
at com.travijuu.numberpicker.library.NumberPicker.refresh(NumberPicker.java:113)
at com.travijuu.numberpicker.library.NumberPicker.setValue(NumberPicker.java:155)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant