Skip to content

Commit fbc25f4

Browse files
Merge pull request #144 from TransactionProcessing/task/getconfigsectionasobject
Task/getconfigsectionasobject
2 parents 78cd729 + 66401b1 commit fbc25f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Shared/General/ConfigurationReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private static T GetTypedValueFromSection<T>(String sectionName,
116116

117117
T value = section.Get<T>();
118118

119-
if (section[keyName] == null) {
119+
if (value == null) {
120120
throw new Exception($"No configuration value was found for key [{sectionName}:{keyName}]");
121121
}
122122

0 commit comments

Comments
 (0)