SEBWIN-221: Fixed parsing of empty XML value tags (bool & string).

This commit is contained in:
dbuechel 2018-12-21 11:52:04 +01:00
parent d34ce15e3f
commit ee166796a5

View file

@ -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;