You are getting a NULL Pointer when trying to parse an empty string value (you can't parse the empty NULL value).
Try this:
String doubleString = dist1.getText().toString();
if (doubleString.equals("")) {
// Do something here (maybe assign a default) to your double or something
} else {
double dist = Double.parseDouble(doubleString);
}