SEBWIN-221: Fixed parsing of empty XML value tags (bool & string).
This commit is contained in:
parent
d34ce15e3f
commit
ee166796a5
1 changed files with 1 additions and 6 deletions
|
@ -222,11 +222,6 @@ namespace SafeExamBrowser.Configuration.DataFormats
|
|||
|
||||
value = null;
|
||||
|
||||
if (element.IsEmpty)
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
switch (element.Name.LocalName)
|
||||
{
|
||||
case XmlElement.Data:
|
||||
|
@ -245,7 +240,7 @@ namespace SafeExamBrowser.Configuration.DataFormats
|
|||
value = Convert.ToDouble(element.Value);
|
||||
break;
|
||||
case XmlElement.String:
|
||||
value = element.Value;
|
||||
value = element.IsEmpty ? null : element.Value;
|
||||
break;
|
||||
case XmlElement.True:
|
||||
value = true;
|
||||
|
|
Loading…
Reference in a new issue