Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
barnstee committed Nov 13, 2023
1 parent a74dc88 commit 71d430e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion UAPubSubMessageProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,14 @@ private void DecodeMessage(byte[] payload, DateTime receivedTime, UaNetworkMessa
if (_dataSetReaders.ContainsKey(publisherID + ":" + dataSetWriterId))
{
string name = _dataSetReaders[publisherID + ":" + dataSetWriterId].DataSetMetaData.Name;
assetName = name.Substring(0, name.LastIndexOf(';'));
if (name.IndexOf(";") != -1)
{
assetName = name.Substring(0, name.LastIndexOf(';'));
}
else
{
assetName = name;
}
}
else
{
Expand Down

0 comments on commit 71d430e

Please sign in to comment.