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

Null object reference and onClick not working #1632

Open
hafiz013 opened this issue Sep 28, 2020 · 1 comment
Open

Null object reference and onClick not working #1632

hafiz013 opened this issue Sep 28, 2020 · 1 comment

Comments

@hafiz013
Copy link

build:gradle:4.0.1
com.jakewharton:butterknife:10.2.3

sample code
@BindView(R2.id.etPassword) AppCompatEditText etPassword;

@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_login);{ ButterKnife.bind(this); etPassword.setTransformationMethod(new PasswordTransformationMethod()); <-- Attempt to invoke virtual method 'void androidx.appcompat.widget.AppCompatEditText.setTransformationMethod(android.text.method.TransformationMethod)' on a null object reference

@OnClick(R2.id.login) public void login() { }. <--- this listener not working. why? I already use androidx

@hafiz013
Copy link
Author

hallo any update here

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