Fixed issue in earlier commit, found in unit tests.

This commit is contained in:
CalDescent 2022-02-24 19:45:37 +00:00
parent a63ef4010d
commit d5521068b0

View File

@ -412,7 +412,7 @@ public class ElectrumX extends BitcoinyBlockchainProvider {
// For the purposes of Qortal we require all outputs to contain addresses
// Some servers omit this info, causing problems down the line with balance calculations
if (addresses.isEmpty()) {
if (addresses == null || addresses.isEmpty()) {
if (this.currentServer != null) {
this.uselessServers.add(this.currentServer);
this.closeServer(this.currentServer);