Avoid crashing when oauth is null

This commit is contained in:
Eli Ribble 2026-03-20 15:47:45 +00:00
parent 9ca8ec4ce2
commit 6fcaf7fb5d
No known key found for this signature in database

View file

@ -151,6 +151,9 @@ func ImageAtTile(ctx context.Context, org *models.Organization, level, y, x uint
if err != nil {
return nil, fmt.Errorf("get oauth for org: %w", err)
}
if oauth == nil {
return nil, fmt.Errorf("get oauth for org nil oauth.")
}
fssync, err := newFieldSeeker(
ctx,
oauth,