You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
super(builder.connection.orElse(builder.clientSupplier.orElseThrow(() -> newIllegalArgumentException("No connection or client supplied.")).apply(0).getConnection()));
The orElse is evaluated before returning the connection, which in turn gets evaluated to the orElseThrow since clientSupplier is empty
It needs to be converted to an orElseGet like
super(builder.connection.orElseGet(() -> builder.clientSupplier.orElseThrow(() -> new IllegalArgumentException("No connection or client supplied.")).apply(0).getConnection()));
The text was updated successfully, but these errors were encountered:
Thanks for the information. We have confirmed this and applied the change to the 3.1.2-SNAPSHOT, which should be published to maven shortly and committed to the develop_3.1.x branch.
Any idea when 3.1.2 will be released? Either I'm too dumb to properly add the sonatype snapshot repo to my gradle config, or my company disabled snapshots somehow
Edit: never mind, our maven repo mirror is just slow. Should sync your snapshots eventually
Hi ya,
The ssh client command throws an IllegalArgumentException due to the following line
maverick-synergy/maverick-synergy-client/src/main/java/com/sshtools/client/tasks/AbstractConnectionTask.java
Line 84 in d6afd03
The orElse is evaluated before returning the connection, which in turn gets evaluated to the orElseThrow since clientSupplier is empty
It needs to be converted to an orElseGet like
The text was updated successfully, but these errors were encountered: