Search code examples
javaandroidandroid-edittext

Android: crashed when EditText Material is empty


Iam trying to put the code here but the site keep giving me error So here is it

https://github.com/C9nc/Empty-EditText/blob/main/EditTextCheck


Solution

  • You have initialised the buttons and edittexts even before you have called the content view ! Initialisation should be done after setContentView();