diff --git a/packages/core/src/consumed-thing.ts b/packages/core/src/consumed-thing.ts index ab44e44e3..95e744acc 100644 --- a/packages/core/src/consumed-thing.ts +++ b/packages/core/src/consumed-thing.ts @@ -116,7 +116,7 @@ export default class ConsumedThing extends TD.Thing implements WoT.ConsumedThing if (this.security && this.securityDefinitions && Array.isArray(this.security) && this.security.length>0) { console.log(`ConsumedThing '${this.title}' setting credentials for ${client}`); - let scs : Array; + let scs : Array = []; for(let s of this.security) { let ws = this.securityDefinitions[s + ""]; // String vs. string (fix wot-typescript-definitions?) if(ws && ws.scheme !== "nosec") {