Skip to content

Commit

Permalink
- issue #3227: fix crash when serializing graphs without about node
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed May 28, 2024
1 parent c6fa1f1 commit 1618ef3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions copasi/MIRIAM/CRDFGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,9 @@ XMLNode CRDFGraph::toXmlNode()
rdfNode.addNamespace(ns.second, ns.first);

XMLAttributes desc_att = XMLAttributes();
if (getAboutNode() == NULL)
return rdfNode;

desc_att.add("rdf:about", getAboutNode()->getSubject().getResource());

std::map< const CRDFNode *, XMLNode * > mNodeMap;
Expand Down

0 comments on commit 1618ef3

Please sign in to comment.