mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-01-11 08:22:04 -06:00
SystemID fix orElse
This commit is contained in:
parent
37cde64b93
commit
cb35f2ddd8
@ -74,7 +74,7 @@ public class SystemId {
|
||||
}).findFirst();
|
||||
|
||||
if ( firstInetAddrForInterface.isPresent() &&
|
||||
firstInetAddrForInterface.orElse(null).getHostAddress().contains(".")) return firstInetAddrForInterface;
|
||||
firstInetAddrForInterface.get().getHostAddress().contains(".")) return firstInetAddrForInterface;
|
||||
|
||||
Optional<InetAddress> firstIpAddress = ifaces.stream()
|
||||
.flatMap(i4 -> {
|
||||
|
Loading…
Reference in New Issue
Block a user