Skip to content

null check #1053

@vmtkac-coe

Description

@vmtkac-coe

I am getting this error:

npm exec spectaql spectaql.yaml
TypeError: Cannot read properties of null (reading 'slice')
at run (/Users/vincenttkac/sandbox/node_modules/spectaql/dist/spectaql/index.js:136:24)
at run (/Users/vincenttkac/sandbox/node_modules/spectaql/dist/index.js:339:59)

Changed to look like this locally and it fixed it:

136 schemes: [protocol != null ? protocol.slice(0, -1) : 0],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions