Skip to content

Commit 5a85c10

Browse files
authored
Merge pull request #650 from bash-lsp/check-config-for-null
Validate that the config object is not null
2 parents a86c78a + e791047 commit 5a85c10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export default class BashServer {
204204
}
205205

206206
private updateConfiguration(configObject: any): boolean {
207-
if (typeof configObject === 'object') {
207+
if (typeof configObject === 'object' && configObject !== null) {
208208
try {
209209
const newConfig = config.ConfigSchema.parse(configObject)
210210

0 commit comments

Comments
 (0)