Don't panic if we don't have a FieldseekerURL

This commit is contained in:
Eli Ribble 2026-02-17 07:05:10 +00:00
parent 1739bc6000
commit 7d33354acb
No known key found for this signature in database

View file

@ -380,6 +380,9 @@ func NewFieldSeeker(ctx context.Context, oauth *models.OauthToken) (*fieldseeker
// The URL for fieldseeker should be something like
// https://foo.arcgis.com/123abc/arcgis/rest/services/FieldSeekerGIS/FeatureServer
// We need to break it up
if row.FieldseekerURL.IsNull() {
return nil, fmt.Errorf("No fieldseeker URL")
}
host, pathParts, err := extractURLParts(row.FieldseekerURL.MustGet())
if err != nil {
return nil, fmt.Errorf("Failed to break up provided url: %v", err)