title: null checking edit textbox android
body: <p>i want to make empty textbox checking for android.  i tried try catch but it was force to close. </p>
  
  <p>below is my codes   </p>
  
  <pre><code> try{
                      name    = (EditText)findViewById(R.id.name);    
                      }catch(NullPointerException ex){
                          new AlertDialog.Builder(KawalanAppXTVT.this).setTitle("Error" )
                          .setMessage("That's not a number")
                          .setPositiveButton("OK", null).show();
  </code></pre>
  
  <p>can someone help me?</p>