mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-14 17:47:32 -05:00
Merge pull request #1741 from DSheirer/1735-radio-ref-api-invalid-county-id-temp-site
#1735 Radio Reference API - Temporary Site With County ID 99999 - Unknown Location
This commit is contained in:
@@ -294,7 +294,11 @@ public class SystemEditor extends VBox
|
|||||||
{
|
{
|
||||||
CountyInfo countyInfo = null;
|
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());
|
countyInfo = mRadioReference.getService().getCountyInfo(site.getCountyId());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user