Skip to content

Commit

Permalink
Merge pull request #103 from h0ru5/scs-push-crashing
Browse files Browse the repository at this point in the history
fixing a crash when using client with security
  • Loading branch information
sebastiankb authored May 28, 2019
2 parents aa3fd65 + 75ed130 commit 9d032fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/consumed-thing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<WoT.Security>;
let scs : Array<WoT.Security> = [];
for(let s of this.security) {
let ws = this.securityDefinitions[s + ""]; // String vs. string (fix wot-typescript-definitions?)
if(ws && ws.scheme !== "nosec") {
Expand Down

0 comments on commit 9d032fc

Please sign in to comment.