I agree it sound like a NumberFormatException happening when your Double.parseDouble(s) fails on an empty or null string.
If you input control allow alpha-numeric input you can (and should) catch this, but for user-friendliness, you should make sure the string isn't empty first. You can then provide two useful error message:
- "Please enter a value" (if the string is null or blank)
- "Please enter a number" (if you caught the parser exception)
You might also consider using or building an input control that only allows for correctly formatted numeric input, including never passing back a blank. If you have this sort of control, you should not catch the parse exception since none should happen, and if does, this means there is a BIG problem and you really want to know about it by failing loudly.
If you are using a numeric-only control, then it's probably just that you are getting back an empty string.