From 1bc452bc098748e831c9a30a3516560993784442 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 16 Apr 2026 20:40:37 +0000 Subject: [PATCH] Avoid crashing when getting Fieldseeker client --- platform/arcgis.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/arcgis.go b/platform/arcgis.go index 9b7b87f4..3d9c407b 100644 --- a/platform/arcgis.go +++ b/platform/arcgis.go @@ -308,6 +308,9 @@ func updateArcgisUserData(ctx context.Context, user *models.User, oauth *models. } func newFieldSeeker(ctx context.Context, oa *models.ArcgisOauthToken) (*fieldseeker.FieldSeeker, error) { + if oa == nil { + return nil, fmt.Errorf("no oath token") + } row, err := sql.OrgByOauthId(oa.ID).One(ctx, db.PGInstance.BobDB) if err != nil { return nil, fmt.Errorf("Failed to get org ID from oauth %d: %w", oa.ID, err)