Skip to content

Commit

Permalink
Avoid index out of range in readnodedata
Browse files Browse the repository at this point in the history
  • Loading branch information
einarmo committed Aug 21, 2024
1 parent 86e41c1 commit 1b1e090
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Extractor/UAClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,8 @@ public async Task ReadNodeData(IEnumerable<BaseUANode> nodes, CancellationToken
$"Too few results in ReadNodeData, this is a bug in the OPC-UA server implementation, total : {total}, expected: {expected}");
}

token.ThrowIfCancellationRequested();

int idx = 0;
foreach (var node in nodes)
{
Expand Down

0 comments on commit 1b1e090

Please sign in to comment.