Skip to content

Commit

Permalink
SessionID.SessionQualifier check in FileLog should use SessionID.IsSe…
Browse files Browse the repository at this point in the history
…t instead of checking length (it may be null if manually created)
  • Loading branch information
Andrey Kamyshanov committed Aug 27, 2014
1 parent efee23f commit aa8e078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QuickFIXn/FileLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static string Prefix(SessionID sessionID)
if (SessionID.IsSet(sessionID.TargetLocationID))
prefix.Append('_').Append(sessionID.TargetLocationID);

if(sessionID.SessionQualifier.Length!=0)
if (SessionID.IsSet(sessionID.SessionQualifier))
prefix.Append('-').Append(sessionID.SessionQualifier);

return prefix.ToString();
Expand Down

0 comments on commit aa8e078

Please sign in to comment.