Skip to content

Commit

Permalink
fix bug - nodeset2 export of namespace index #689 (#1510)
Browse files Browse the repository at this point in the history
* fix bug - nodeset2 export of namespace index #689

* the actual fix for #689
  • Loading branch information
cristipogacean committed Sep 16, 2021
1 parent 92ae1d3 commit 5048189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Stack/Opc.Ua.Core/Schema/UANodeSetHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ private ushort ExportNamespaceUri(string namespaceUri, NamespaceTable namespaceU
}

// find an existing index.
int count = 1; ;
int count = 1;

if (this.NamespaceUris != null)
{
Expand All @@ -1341,7 +1341,7 @@ private ushort ExportNamespaceUri(string namespaceUri, NamespaceTable namespaceU
this.NamespaceUris = uris;

// return the new index.
return (ushort)(count + 1);
return (ushort)count;
}

/// <summary>
Expand Down

0 comments on commit 5048189

Please sign in to comment.