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

NullPointerException #16

Open
ghost opened this issue Apr 10, 2018 · 1 comment
Open

NullPointerException #16

ghost opened this issue Apr 10, 2018 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Apr 10, 2018

in RVAdapter,

public static ElegantNumberButton button;

in MainActivity,

SubMenuRVAdapter.button.setNumber("0");

When I click Send button, I want to set ElegantNumberButton number "0" as a default. This ElegantNumberButton, findViewById come from RVAdapter.

@ashik94vc
Copy link
Owner

The problem for you is in SubMenuRVAdapter. I don't exactly know what's happening unless I can see the Log or at least your code for SubMenuRv Adapter where you're calling ElegantNumberButton. I'd also advice you to not make the button as static. This doesn't initialize the object.

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

No branches or pull requests

1 participant