SystemID fix orElse

This commit is contained in:
Dave Fisher 2023-09-06 10:54:29 -07:00
parent 37cde64b93
commit cb35f2ddd8

View File

@ -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 -> {