Skip to content

Commit 3c50749

Browse files
committed
Fix for #146
1 parent 5de64cd commit 3c50749

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

WorkloadTools/Listener/ExtendedEvents/StreamXEventDataReader.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,13 @@ private object TryGetValue(PublishedEvent evt, FieldType t, string name)
267267
// check whether last char is a null char (\0)
268268
// because this breaks writing this string to the sqlite database
269269
// which considers it as a BLOB
270-
if(result is string stringValue)
270+
if (result is string stringValue)
271271
{
272272
while (stringValue.EndsWith("\0"))
273273
{
274-
result = stringValue.Remove(stringValue.Length - 1);
274+
stringValue = stringValue.Remove(stringValue.Length - 1);
275275
}
276+
result = stringValue;
276277
}
277278
return result;
278279
}

0 commit comments

Comments
 (0)