Skip to content

Commit

Permalink
Merge pull request #712 from heeko/master
Browse files Browse the repository at this point in the history
TraceParserGen: fix GetTemplateNameForEvent for empty evnt fields
  • Loading branch information
vancem authored Aug 6, 2018
2 parents e8a8e3c + 53dbc75 commit 3842bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TraceParserGen/TraceParserGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ private static bool SkipPadOrReservedFields(FieldInfo fieldInfo)
private static string GetTemplateNameForEvent(Event evnt, string eventName)
{
var ret = "EmptyTraceData";
if (evnt.Fields != null)
if (evnt.Fields != null && evnt.Fields.Count > 0)
{
ret = TraceParserGen.ToCSharpName(evnt.TemplateName);
if (ret == null || ret.StartsWith("tid_"))
Expand Down

0 comments on commit 3842bb4

Please sign in to comment.