title: Avoiding a Parsing Error from an EditText in Android
body: <p>To stackoverflow community,
  I created this method to turn some EditText fields in doubles. I added the if statement specifically for the purpose of avoiding parse error because I know that several of my EditText fields will be left blank. However, they still keep coming at runtime. Does anybody know the correct way to avoid parsing fields that are blank? Thank you very much.</p>
  
  <pre><code>private double Doublify(EditText editText){
    if(!(editText.getText().equals(null))){
     return Double.parseDouble(editText.getText().toString());
    }
    return 0;
   }
  </code></pre>