All over the net I see examples like edittext.getText().toString(). I do not see any null check. In docs I do not see any statement that would say that this wil
edittext.getText().toString()
try in this way
String edittext = edittext.getText().toString(); if(edittext.length==0){ Log.d("null","the valueis null")};