Skip to content

Commit 0414183

Browse files
committed
Fixed an issue where an ArgumentOutOfRange exception would be thrown if the extended data item was an empty string.
1 parent 2576e53 commit 0414183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Core/Pipeline/035_CopySimpleDataToIdxAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public override void Process(EventContext ctx) {
2525
ctx.Event.Idx[field + "-d"] = ctx.Event.Data[key];
2626
} else if (dataType == typeof(string)) {
2727
var input = (string)ctx.Event.Data[key];
28-
if (input.Length >= 1000)
28+
if (String.IsNullOrEmpty(input) || input.Length >= 1000)
2929
continue;
3030

3131
if (input.GetJsonType() != JsonType.None)

0 commit comments

Comments
 (0)