TheInfiniteKind / moneydance_open

17 stars 12 forks source link

BUG/CRASH when setting (Tools>Currency) currency's relative currency to non-base causes RuntimeException #63

Closed yogi1967 closed 3 years ago

yogi1967 commented 3 years ago

Build 3069:

I know this scenario is not allowed and the application should block it... But it causes a major crash and then you are stuck on a currency window you cannot close...

The errant code is here: com.infinitekind.moneydance.model.CurrencyType.setRelativeCurrency(CurrencyType)

if (getCurrencyType() == Type.CURRENCY && !newRelativeCurrency.equals(base))
      throw new RuntimeException("Cannot set relative base for non-securities to anything but the base currency"); 

Please can you change to nicely exit the screen with a nice popup message?

Causes this error log attached.. errlog.txt

yogi1967 commented 3 years ago

Sean said he plans to disable this dropdown selection box for Currencies....

yogi1967 commented 3 years ago

Fixed in build 3093