Skip to content

Commit ae1bbb6

Browse files
Ensure HighLimit and LowLimit are not null and not empty string
1 parent 6d59876 commit ae1bbb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎libEDSsharp/eds.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,12 +1197,12 @@ public void Write(StreamWriter writer, InfoSection.Filetype ft, Odtype odt= Odty
11971197
writer.WriteLine(string.Format("AccessType={0}", accesstype.ToString()));
11981198

11991199

1200-
if(HighLimit != "")
1200+
if(HighLimit != null && HighLimit != "")
12011201
{
12021202
writer.WriteLine(string.Format("HighLimit={0}", Formatoctetstring(HighLimit)));
12031203
}
12041204

1205-
if (LowLimit != "")
1205+
if (LowLimit != null && LowLimit != "")
12061206
{
12071207
writer.WriteLine(string.Format("LowLimit={0}", Formatoctetstring(LowLimit)));
12081208
}

0 commit comments

Comments
 (0)