Avoid crashing when oauth is null
This commit is contained in:
parent
9ca8ec4ce2
commit
6fcaf7fb5d
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue