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;
|
value = null;
|
||||||
|
|
||||||
if (element.IsEmpty)
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (element.Name.LocalName)
|
switch (element.Name.LocalName)
|
||||||
{
|
{
|
||||||
case XmlElement.Data:
|
case XmlElement.Data:
|
||||||
|
@ -245,7 +240,7 @@ namespace SafeExamBrowser.Configuration.DataFormats
|
||||||
value = Convert.ToDouble(element.Value);
|
value = Convert.ToDouble(element.Value);
|
||||||
break;
|
break;
|
||||||
case XmlElement.String:
|
case XmlElement.String:
|
||||||
value = element.Value;
|
value = element.IsEmpty ? null : element.Value;
|
||||||
break;
|
break;
|
||||||
case XmlElement.True:
|
case XmlElement.True:
|
||||||
value = true;
|
value = true;
|
||||||
|
|
Loading…
Reference in a new issue