Skip to content

Commit d108f89

Browse files
committed
fix: take unto account that exp.content can be null
1 parent 5ac7596 commit d108f89

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

shared/packages/worker/src/worker/accessorHandlers/atem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class ATEMAccessorHandle<Metadata> extends GenericAccessorHandle<Metadata
4949
})
5050

5151
this.accessor = arg.accessor
52-
this.content = arg.content
52+
this.content = arg.content ?? {}
5353

5454
// Verify content data:
5555
if (!this.content.onlyContainerAccess) {

shared/packages/worker/src/worker/accessorHandlers/corePackageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class CorePackageInfoAccessorHandle<Metadata> extends GenericAccessorHand
4646
})
4747

4848
this.accessor = arg.accessor
49-
this.content = arg.content // not used by this class
49+
this.content = null // arg.content not used by this class
5050

5151
// Verify content data:
5252
if (arg.workOptions.removeDelay && typeof arg.workOptions.removeDelay !== 'number')

shared/packages/worker/src/worker/accessorHandlers/fileShare.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class FileShareAccessorHandle<Metadata> extends GenericFileAccessorHandle
7979
type: FileShareAccessorHandle.type,
8080
})
8181
this.accessor = arg.accessor
82-
this.content = arg.content
82+
this.content = arg.content ?? {}
8383
this.workOptions = arg.workOptions
8484
this.originalFolderPath = this.accessor.folderPath
8585
this.actualFolderPath = this.originalFolderPath // To be overwritten later

shared/packages/worker/src/worker/accessorHandlers/ftp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class FTPAccessorHandle<Metadata> extends GenericAccessorHandle<Metadata>
5858
type: FTPAccessorHandle.type,
5959
})
6060
this.accessor = arg.accessor
61-
this.content = arg.content
61+
this.content = arg.content ?? {}
6262
this.workOptions = arg.workOptions
6363

6464
if (this.workOptions.removeDelay && typeof this.workOptions.removeDelay !== 'number')

shared/packages/worker/src/worker/accessorHandlers/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class HTTPAccessorHandle<Metadata> extends GenericAccessorHandle<Metadata
5050
type: HTTPAccessorHandle.type,
5151
})
5252
this.accessor = arg.accessor
53-
this.content = arg.content
53+
this.content = arg.content ?? {}
5454
// this.workOptions = arg.workOptions
5555

5656
// Verify content data:

shared/packages/worker/src/worker/accessorHandlers/httpProxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class HTTPProxyAccessorHandle<Metadata> extends GenericAccessorHandle<Met
5353
type: HTTPProxyAccessorHandle.type,
5454
})
5555
this.accessor = arg.accessor
56-
this.content = arg.content
56+
this.content = arg.content ?? {}
5757
this.workOptions = arg.workOptions
5858

5959
// Verify content data:

shared/packages/worker/src/worker/accessorHandlers/quantel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export class QuantelAccessorHandle<Metadata> extends GenericAccessorHandle<Metad
5858
})
5959
this.accessor = arg.accessor
6060
this.workOptions = arg.workOptions
61-
this.content = arg.content
61+
this.content = arg.content ?? {}
6262

6363
// Verify content data:
6464
if (!this.content.onlyContainerAccess) {

0 commit comments

Comments
 (0)