Skip to content

Commit

Permalink
Fixed Fatal parsing error
Browse files Browse the repository at this point in the history
Fixed null pointer reference error
  • Loading branch information
AgathokakologicalBit committed Aug 7, 2017
1 parent 11e19c5 commit 5957a1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ConfigManager/ConfigValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public IReadOnlyList<ConfigValue> GetAll(string name)
}

_values.TryGetValue(name.ToUpperInvariant(), out var values);
return values.AsReadOnly() ?? new List<ConfigValue>().AsReadOnly();
return values?.AsReadOnly() ?? new List<ConfigValue>().AsReadOnly();
}

/// <summary>
Expand Down Expand Up @@ -245,7 +245,7 @@ public IReadOnlyList<ConfigValue> GetAllByPath(string path)
}
}

return targets;
return targets.AsReadOnly();
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions ConfigManager/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@

[assembly: Guid("5e3f7d2a-18aa-4e60-94b0-b8624b116b29")]

[assembly: AssemblyVersion("0.6.1.0")]
[assembly: AssemblyFileVersion("0.6.1.0")]
[assembly: AssemblyVersion("0.6.1.1")]
[assembly: AssemblyFileVersion("0.6.1.1")]

0 comments on commit 5957a1a

Please sign in to comment.