Commit b051e75b authored by Boris Kocherov's avatar Boris Kocherov

fix ReadFileType() if sXMLOptions empty

parent 0ce9261b
...@@ -109,7 +109,7 @@ namespace SerializeCommon ...@@ -109,7 +109,7 @@ namespace SerializeCommon
// Read options // Read options
XmlUtils::CXmlLiteReader oReader; XmlUtils::CXmlLiteReader oReader;
if (true != oReader.FromString(sXMLOptions) || true != oReader.IsValid()) if (sXMLOptions.empty() || !oReader.FromString(sXMLOptions) || !oReader.IsValid())
return; return;
oReader.ReadNextNode(); // XmlOptions oReader.ReadNextNode(); // XmlOptions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment