#1971 P25 AMBTC Status Query - Error Parsing Source Address (#1976)

Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
Denny Sheirer
2024-09-09 09:37:09 -04:00
committed by GitHub
parent 9f3f7e65a4
commit b9068da99c

View File

@@ -85,7 +85,7 @@ public class AMBTCStatusQuery extends AMBTCMessage
public APCO25FullyQualifiedRadioIdentifier getSourceAddress()
{
if(mSourceAddress == null)
if(mSourceAddress == null && hasDataBlock(0) && hasDataBlock(1))
{
int localAddress = getDataBlock(0).getMessage().getInt(BLOCK_0_SOURCE_ADDRESS) << 8;
localAddress += getDataBlock(1).getMessage().getInt(BLOCK_1_SOURCE_ADDRESS);