AAVSO / VStar

VStar is a visualisation and analysis tool for variable star data brought to you by AAVSO
https://www.aavso.org/vstar
GNU Affero General Public License v3.0
9 stars 3 forks source link

FourierModelCreator plug-in is not finished properly if empty value entered in "Period (days)" dialog #215

Closed mpyat2 closed 2 years ago

mpyat2 commented 2 years ago

After entering an empty value, VStar shows the exception dialog and leaves the ' wait' cursor. image

Possible solution: HarmonicPeriodPane.java: public Double getPeriod(): catch all exceptions instead of NumberFormatException only: NumberParser.parseDouble() throws others exceptions too.

in line 105: replace '} catch (NumberFormatException e) {' by '} catch (Exception e) {'