mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-07-26 00:29:23 +00:00
HangupMessage requires a non-null deviceId, but deviceId is only set once the remote peer's offer is received. If the call ends before the offer arrives (e.g. tunnel fails to spawn), deviceId is null and the HangupMessage constructor throws a NullPointerException. Guard the hangup send with a deviceId != null check so the protocol message is only sent when there is a known remote device to address.