Can anyone tell me what is wrong with this?
App crashes if user input is left blank. I was hoping it would display toast and wait for input.
EditText userWireInput = (EditText) findViewById(R.id.WireSizeInputET);
String userWireData = userWireInput.getText().toString();
double userWire = Double.parseDouble(userWireData);
if (userWire == 0) {
Toast.makeText(ISOM_Int_Results.this, "ENTER WIRE SIZE", Toast.LENGTH_LONG).show();
return;
}