mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-22 00:19:10 -04:00
Check optional value in keyring getter, hint nullable
This commit is contained in:
parent
ab4491d956
commit
7351363830
@ -776,8 +776,9 @@ public class P2PService implements SetupListener, MessageListener, ConnectionLis
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
@Nullable
|
||||
public KeyRing getKeyRing() {
|
||||
return optionalKeyRing.get();
|
||||
return optionalKeyRing.isPresent()? optionalKeyRing.get() : null;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user