diff --git a/iguana/exchanges/LP_socket.c b/iguana/exchanges/LP_socket.c index 5ac39bc15..5b0b5b549 100644 --- a/iguana/exchanges/LP_socket.c +++ b/iguana/exchanges/LP_socket.c @@ -519,7 +519,7 @@ cJSON *electrum_address_listunspent(char *symbol,struct electrum_info *ep,cJSON cJSON *retjson=0; struct LP_address *ap; struct iguana_info *coin; int32_t height,usecache=1; if ( (coin= LP_coinfind(symbol)) == 0 ) return(0); - if ( ep->heightp == 0 ) + if ( ep == 0 || ep->heightp == 0 ) height = coin->longestchain; else height = *(ep->heightp); if ( (ap= LP_address(coin,addr)) != 0 )