mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-23 12:39:23 +00:00
fix possible npe on connection changed
This commit is contained in:
parent
ff9f0a7204
commit
079944c934
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue