Skip to content

Commit

Permalink
Fixed a bug where id's wouldn't be generated on empty strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Mar 25, 2016
1 parent 8057390 commit 25267ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Extensions/EnumerableExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static void EnsureIds<T>(this IEnumerable<T> values, Func<T, string> gene
return;

foreach (var value in values) {
if (value.Id == null)
if (String.IsNullOrEmpty(value.Id))
value.Id = generateIdFunc(value);
}
}
Expand Down

0 comments on commit 25267ec

Please sign in to comment.