From 5858a85a509d9ebcc0cb451a2eee3e544508d03c Mon Sep 17 00:00:00 2001 From: sheirerd Date: Wed, 15 Nov 2023 04:51:07 -0500 Subject: [PATCH] #1735 Adds support for county ID with sentinel value of 99999 to indicate county unknown for sites of a system. --- .../dsheirer/gui/playlist/radioreference/SystemEditor.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/dsheirer/gui/playlist/radioreference/SystemEditor.java b/src/main/java/io/github/dsheirer/gui/playlist/radioreference/SystemEditor.java index bd26611b..89409ba2 100644 --- a/src/main/java/io/github/dsheirer/gui/playlist/radioreference/SystemEditor.java +++ b/src/main/java/io/github/dsheirer/gui/playlist/radioreference/SystemEditor.java @@ -294,7 +294,11 @@ public class SystemEditor extends VBox { CountyInfo countyInfo = null; - if(site.getCountyId() > 0) + int countyId = site.getCountyId(); + + //Temporary sites that have been added to a system where the county/location is unknown, can + //have a county ID of 99,999 as observed from API (undocumented). + if(countyId > 0 && countyId != 99999) { countyInfo = mRadioReference.getService().getCountyInfo(site.getCountyId()); }