mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-25 07:19:30 -05:00
fix possible npe on connection changed
This commit is contained in:
parent
ff9f0a7204
commit
079944c934
@ -498,7 +498,7 @@ public final class CoreMoneroConnectionsService {
|
|||||||
daemon = null;
|
daemon = null;
|
||||||
connectionList.setCurrentConnectionUri(null);
|
connectionList.setCurrentConnectionUri(null);
|
||||||
} else {
|
} else {
|
||||||
daemon = new MoneroDaemonRpc(connectionManager.getConnection());
|
daemon = new MoneroDaemonRpc(currentConnection);
|
||||||
connectionList.removeConnection(currentConnection.getUri());
|
connectionList.removeConnection(currentConnection.getUri());
|
||||||
connectionList.addConnection(currentConnection);
|
connectionList.addConnection(currentConnection);
|
||||||
connectionList.setCurrentConnectionUri(currentConnection.getUri());
|
connectionList.setCurrentConnectionUri(currentConnection.getUri());
|
||||||
|
Loading…
Reference in New Issue
Block a user