Skip to content

Commit 1df47ea

Browse files
committed
more defense in depth against a crash when target account cannot be connected to
1 parent 9ec3c87 commit 1df47ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/objects/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func (cfg JobConfiguration) Compile(name string, swift SwiftLocation) (job *Job,
231231
if err != nil {
232232
errors = append(errors, err)
233233
}
234-
if job.Segmenting != nil {
234+
if job.Target.Account != nil && job.Segmenting != nil {
235235
job.Segmenting.Container, err = job.Target.Account.Container(job.Segmenting.ContainerName).EnsureExists()
236236
if err != nil {
237237
errors = append(errors, err)

0 commit comments

Comments
 (0)