Skip to content

Commit

Permalink
Fix crawler has throw error if object do not contains displayName or …
Browse files Browse the repository at this point in the history
…description

For some reason, object do not contains displayName or  description so throw an exception about can not get text from null or undefined
  • Loading branch information
narttmk authored and erossignon committed Mar 6, 2024
1 parent fa0b34f commit cd9dcb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/node-opcua-client-crawler/source/node_crawler.ts
Expand Up @@ -160,8 +160,8 @@ export class NodeCrawler extends NodeCrawlerBase {
const obj: any = {
browseName: object.browseName.name,
nodeId: object.nodeId.toString(),
displayName: object.displayName.text,
description:object.description.text,
displayName: object.displayName?.text,
description:object.description?.text,
};

// Append nodeClass
Expand Down

0 comments on commit cd9dcb0

Please sign in to comment.