Skip to content

Commit

Permalink
fix change vector deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
karmeli87 committed Jun 5, 2024
1 parent 9c13113 commit daf1a7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

<ItemGroup>
<EmbeddedResource Include="reference.conf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>

<EmbeddedResource Include="ChangeVectorAnalyzer.cs">
Expand Down
3 changes: 3 additions & 0 deletions src/Akka.Persistence.RavenDB/ChangeVectorAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ public static class ChangeVectorAnalyzer
public static Dictionary<string, long> ToDictionary(string changeVector)
{
var dic = new Dictionary<string, long>();
if (string.IsNullOrEmpty(changeVector))
return dic;

var matches = Pattern.Matches(changeVector);
foreach (Match match in matches)
{
Expand Down

0 comments on commit daf1a7d

Please sign in to comment.