mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Only set capabilities if not null
This commit is contained in:
parent
b0fef9819b
commit
7e0a7a4f02
@ -754,8 +754,12 @@ public class Connection implements HasCapabilities, Runnable, MessageListener {
|
||||
return;
|
||||
}
|
||||
|
||||
if (networkEnvelope instanceof SupportedCapabilitiesMessage)
|
||||
capabilities.set(((SupportedCapabilitiesMessage) networkEnvelope).getSupportedCapabilities());
|
||||
if (networkEnvelope instanceof SupportedCapabilitiesMessage) {
|
||||
Capabilities supportedCapabilities = ((SupportedCapabilitiesMessage) networkEnvelope).getSupportedCapabilities();
|
||||
if (supportedCapabilities != null) {
|
||||
capabilities.set(supportedCapabilities);
|
||||
}
|
||||
}
|
||||
|
||||
if (networkEnvelope instanceof CloseConnectionMessage) {
|
||||
// If we get a CloseConnectionMessage we shut down
|
||||
|
Loading…
Reference in New Issue
Block a user