I have got this error and my application stops running
va.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference
when I click on the button next please tell me what to do instead in order to check that the fields are empty
if ( ( lastName.getText().toString().matches("")) || ( firstName.getText().toString().matches("") ) ||
( id.getText().toString().matches("") ) || ( email.getText().toString().matches("") ) ||
( phoneNumber.getText().toString().matches("") ) )
Thank you for your help