Skip to content
Snippets Groups Projects
Commit fd48526f authored by Tinny Ng's avatar Tinny Ng
Browse files

Error checking for null content spec. By Alberto Massari.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@172588 13f79535-47bb-0310-9956-ffa450edef68
parent 2b554204
No related branches found
No related tags found
No related merge requests found
...@@ -351,6 +351,9 @@ XMLContentModel* DTDElementDecl::createChildModel(const Grammar* grammar) const ...@@ -351,6 +351,9 @@ XMLContentModel* DTDElementDecl::createChildModel(const Grammar* grammar) const
// Get the content spec node of the element // Get the content spec node of the element
const ContentSpecNode* specNode = getContentSpec(); const ContentSpecNode* specNode = getContentSpec();
if(!specNode)
ThrowXML(RuntimeException, XMLExcepts::CM_UnknownCMSpecType);
// //
// Do a sanity check that the node is does not have a PCDATA id. Since, // Do a sanity check that the node is does not have a PCDATA id. Since,
// if it was, it should have already gotten taken by the Mixed model. // if it was, it should have already gotten taken by the Mixed model.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment