Multibit-Legacy / multibit-hd

Deprecated Bitcoin Wallet
https://multibit.org/blog/2017/07/26/multibit-shutdown.html
Other
171 stars 113 forks source link

No exchange rate causes NPE #690

Closed jim618 closed 8 years ago

jim618 commented 9 years ago

"thread_name": "AWT-EventQueue-0", "logger_name": "org.multibit.hd.core.error_reporting.ExceptionHandler", "message": "Uncaught exception. Proceeding to show Error Reporting dialog...", "stack_trace": "java.lang.NullPointerException: 'exchangeRate' must be present at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:229) ~[multibit-hd.jar:na] at org.multibit.hd.core.utils.Coins.toLocalAmount(Coins.java:37) ~[multibit-hd.jar:na] at org.multibit.hd.ui.views.components.enter_amount.EnterAmountView$4.run(EnterAmountView.java:371) ~[multibit-hd.jar:na] at java.awt.event.InvocationEvent.dispatch(Unknown Source) ~[na:1.7.0_80]

gary-rowe commented 9 years ago

Trivial fix so worth putting into 0.1.3.

jim618 commented 9 years ago

I've put in checks for all usages of Coins.toLocalAmount to check for a null exchange rate. Awaiting code review and closing.

gary-rowe commented 8 years ago

Verified working.

Closing.