Skip to content

Commit

Permalink
Merge pull request #5 from ChrisPulman/ChrisPulman-patch-1
Browse files Browse the repository at this point in the history
Update RxS7.cs
  • Loading branch information
ChrisPulman authored Sep 1, 2022
2 parents 7ac6c13 + 6fad77c commit 36b232e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/S7PlcRx/RxS7.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ internal bool WriteClass(Tag tag, object classValue, int db, int startByteAdr =
/// Adds the update tag item.
/// </summary>
/// <param name="tag">The tag.</param>
internal void AddUpdateTagItem(Tag tag!!)
internal void AddUpdateTagItem(Tag tag)
{
if (string.IsNullOrWhiteSpace(tag.Address))
if (string.IsNullOrWhiteSpace(tag?.Address))
{
throw new TagAddressOutOfRangeException(tag);
}
Expand All @@ -280,7 +280,7 @@ internal void AddUpdateTagItem(Tag tag!!)
_lock.Release();
}

internal void RemoveTagItem(string tagName!!)
internal void RemoveTagItem(string tagName)
{
if (string.IsNullOrWhiteSpace(tagName))
{
Expand Down

0 comments on commit 36b232e

Please sign in to comment.