Skip to content

Commit

Permalink
#1971 P25 AMBTC Status Query - Error Parsing Source Address (#1976)
Browse files Browse the repository at this point in the history
Co-authored-by: Dennis Sheirer <[email protected]>
  • Loading branch information
DSheirer and Dennis Sheirer authored Sep 9, 2024
1 parent 9f3f7e6 commit b9068da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public APCO25FullyQualifiedRadioIdentifier getTargetAddress()

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);
Expand Down

0 comments on commit b9068da

Please sign in to comment.